INNER CODE UNIT · Python
logger
HadrienG/InSilicoSeq · iss/error_models/__init__.py:23
def logger(self):
component = "{}.{}".format(type(self).__module__, type(self).__name__)
return logging.getLogger(component)
def load_npz(self, npz_path, model):
"""load the error profile .npz file
Args:
npz_path (string): path to the npz file
model (string): type of model. Could be 'cdf' or 'kde'. 'cdf' has
been deprecated and is no longer available
Returns:
ndarray: numpy object containg variables necessary
for error model construction
"""
try:
error_profile = np.load(npz_path, allow_pickle=True)