-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
I'm considering adding an environment variable to the automated tests that can be used to run a shorter/simpler version of the model. This would work like this:
$ CS_TEST=true py.test cs-config -v
Then models could check for the environment variable in their code:
def run_model(meta_param_dict, adjustment):
if os.environ.get("CS_TEST") == "true":
test_mode = True
# ....This would still give the model and C/S an opportunity to make sure that all required packages are installed and that outputs are formatted correctly without making model updates expensive in time or compute cost.
@jdebacker what do you think about this? (looking at you OG-USA...)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels