Configure Inputs

Configure inputs for a Cascade-AT model.

Inputs Script

cascade_at.executor.configure_inputs.configure_inputs(model_version_id, make, configure, test_dir=None, json_file=None)[source]

Grabs the inputs for a specific model version ID, sets up the folder structure, and pickles the inputs object plus writes the settings json for use later on. Also uploads CSMR to the database attached to the model version, if applicable.

Optionally use a json file for settings instead of a model version ID’s json file.

Parameters
  • model_version_id (int) – The model version ID to configure inputs for

  • make (bool) – Whether or not to make the directory structure for the model version ID

  • configure (bool) – Configure the application for the IHME cluster, otherwise will use the test_dir for the directory tree instead.

  • test_dir (Optional[str]) – A test directory to use rather than the directory specified by the model version context in the IHME file system.

  • json_file (Optional[str]) – An optional filepath pointing to a different json than is attached to the model_version_id. Will use this instead for settings.

Return type

None

Inputs Cascade Operation

class cascade_at.cascade.cascade_operations.ConfigureInputs(model_version_id, **kwargs)[source]

Configure the inputs for a model version ID.

Parameters

model_version_id (int) – The model version to configure inputs for