-
Notifications
You must be signed in to change notification settings - Fork 6
Raise nicer error from show() when missing a dummy data file #2675
Copy link
Copy link
Open
Description
A present, the error you get from the show() command when you call it on an expression for which there is no corresponding dummy data file is a bit "computery":
Show line 25:
Error loading file 'analysis/dataset_definition.py':
Traceback (most recent call last):
File "/workspace/analysis/dataset_definition.py", line 25, in
show(dataset.concordant_dates)
~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^
ehrql.file_formats.base.FileValidationError: Missing file: dummy_tables/repeat_medications_raw.csv
We could make this a bit more user-friendly.
Possibly we could generate the command they would need to run to create new dummy tables from their dataset.
This is related to:
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels