generated from CDCgov/template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from CDCgov/create-experiment
creating the create_experiment script
- Loading branch information
Showing
8 changed files
with
465 additions
and
249 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,33 @@ | ||
# keep imports relative to avoid circular importing | ||
from . import azure_utilities, experiment_setup | ||
from .azure_utilities import AzureExperimentLauncher | ||
import os | ||
|
||
from . import azure_utils | ||
from . import utils as experiment_utils | ||
from .azure_utils import AzureExperimentLauncher | ||
|
||
# GLOBALS, DONT CHANGE UNLESS YOU KNOW WHAT YOU ARE DOING | ||
# tells the script where to look for certain files in an experiment | ||
RUNNER_SCRIPT_PATH = "run_task.py" | ||
TEMPLATE_CONFIGS_DIR_NAME = "template_configs" | ||
STATE_CONFIGS_DIR_NAME = "states" | ||
PP_SCRIPTS_DIR_NAME = "postprocessing_scripts" | ||
EXP_DIR_NAME_OPTIONAL = "exp" | ||
PACKAGE_PATH, _ = os.path.split(os.path.realpath(__file__)) | ||
FIPS_TO_NAME_PATH = os.path.join(PACKAGE_PATH, "data", "fips_to_name.csv") | ||
POPULATIONS_PATH = os.path.join(PACKAGE_PATH, "data", "CenPop2020_Mean_ST.csv") | ||
|
||
|
||
# Defines all the different modules able to be imported | ||
__all__ = [ | ||
experiment_setup, | ||
azure_utilities, | ||
azure_utils, | ||
AzureExperimentLauncher, | ||
experiment_utils, | ||
RUNNER_SCRIPT_PATH, | ||
TEMPLATE_CONFIGS_DIR_NAME, | ||
STATE_CONFIGS_DIR_NAME, | ||
PP_SCRIPTS_DIR_NAME, | ||
EXP_DIR_NAME_OPTIONAL, | ||
FIPS_TO_NAME_PATH, | ||
POPULATIONS_PATH, | ||
PACKAGE_PATH, | ||
] |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.