From da27fc7fa48409213bdd2ef21748a91151b27814 Mon Sep 17 00:00:00 2001 From: pciturri Date: Fri, 5 Jul 2024 16:58:13 +0200 Subject: [PATCH] fix: correctly showing in logs the end date of an experiment --- floatcsep/experiment.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/floatcsep/experiment.py b/floatcsep/experiment.py index 7583113..21d3d76 100644 --- a/floatcsep/experiment.py +++ b/floatcsep/experiment.py @@ -154,7 +154,7 @@ def __init__(self, log.info(f'Setting up experiment {self.name}:') log.info(f'\tStart: {self.start_date}') - log.info(f'\tEnd: {self.start_date}') + log.info(f'\tEnd: {self.end_date}') log.info(f'\tTime windows: {len(self.timewindows)}') log.info(f'\tRegion: {self.region.name if self.region else None}') log.info(f'\tMagnitude range: [{numpy.min(self.magnitudes)},' @@ -957,7 +957,7 @@ def from_yml(cls, config_yml: str, reprdir=None, **kwargs): with open(config_yml, 'r') as yml: # experiment configuration file - _dict = yaml.safe_load(yml) + _dict = yaml.load(yml, NoAliasLoader) _dir_yml = dirname(config_yml) # uses yml path and append if a rel/abs path is given in config. _path = _dict.get('path', '')