In this PR, I updated utils.py to include global variables that hold the mappings of dataset ids and problem ids to corresponding file paths. Since the variables take some time to create (the D3M code has to scan all the datasets), they are actually only filled the first time you call either get_dataset_doc_path() or get_problem_path(). That way, if you just import experimenter.utils you don't have to wait around for these global variables to get filled if you don't even call these update getters. All subsequent calls are very fast since the dictionaries are now cached.
In this PR, I updated
utils.py
to include global variables that hold the mappings of dataset ids and problem ids to corresponding file paths. Since the variables take some time to create (the D3M code has to scan all the datasets), they are actually only filled the first time you call eitherget_dataset_doc_path()
orget_problem_path()
. That way, if you just importexperimenter.utils
you don't have to wait around for these global variables to get filled if you don't even call these update getters. All subsequent calls are very fast since the dictionaries are now cached.Closes #91