allensdk.internal.api.queries.optimize_config_reader module

class allensdk.internal.api.queries.optimize_config_reader.OptimizeConfigReader[source]

Bases: object

MOD_FILE_TYPE_ID = 292178729
MORPHOLOGY_TYPE_ID = 303941301
NEURONAL_MODEL_PARAMETERS = 329230374
STIMULUS_CONTENT_TYPE = None
build_manifest(manifest_path=None)[source]
lims_working_directory()[source]

While this is the same directory as the optimize directory, it can be mocked out for testing if the optimize directory is write only.

mod_file_entries()[source]

read the NERUON .mod file entries from the lims result corresponding to the NeuronModel :return: well known file entries :rtype: array of dicts

mod_file_paths()[source]

Get the paths to the mod files from the lims result. :return: paths to mod files :rtype: array of strings

morphology_file_entries()[source]

read the well known file paths from the lims result corresponding to the morphology

Returns:
arrary of dicts:

well known file entries

morphology_path()[source]

Get the path to the morphology file from the lims result. :return: path to morphology file :rtype: string

neuronal_model_optimize_dir()[source]

read the directory path where output goes from the lims optimization config json

Parameters:
Returns:
string:

directory path

output_directory()[source]
read_json(path)[source]
read_json_string(json_string)[source]
read_lims_file(lims_path)[source]
read_lims_message(message, lims_path)[source]
stimulus_file_entries()[source]

read the well known file path from the lims result corresponding to the stimulus file :return: well_known_file entries :rtype: array of dicts

stimulus_path()[source]

Get the path to the stimulus file from the lims result. :return: path to stimulus file :rtype: string

sweep_entries()[source]

read the sweep entries from the lims result corresponding to the stimulus :return: stimulus sweep entries :rtype: array of dicts

sweep_numbers()[source]

Get the stimulus sweep numbers from the lims result :return: list of sweep numbers :rtype: array of ints

to_manifest(manifest_path=None)[source]
update_well_known_file(path, well_known_file_type_id=None)[source]
write_file(path)[source]