e_model_packager.sscx2020.utils

Contains the utility functions needed for the workflow.

Functions

combine_names(mtype, etype, gidx)

Returns the combined metype and cell index.

get_output_path(mtype, etype, region, gidx, ...)

Returns the path to the outputs directory of one cell model.

Classes

LocalTargetCustom([path, format, is_tmp])

Allow '*' in file path when checking for existence.

class LocalTargetCustom(path=None, format=None, is_tmp=False)

Bases: LocalTarget

Allow ‘*’ in file path when checking for existence.

Initializes a FileSystemTarget instance.

Parameters:

path – the path associated with this FileSystemTarget.

exists()

Returns True if the path exists; False otherwise.

Path can have ‘*’ in it.

combine_names(mtype, etype, gidx)

Returns the combined metype and cell index.

get_output_path(mtype, etype, region, gidx, workflow_output_dir)

Returns the path to the outputs directory of one cell model.