Skip to content

Commit

Permalink
fix: correctly showing in logs the end date of an experiment
Browse files Browse the repository at this point in the history
  • Loading branch information
pabloitu committed Jul 5, 2024
1 parent 0b205a1 commit da27fc7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions floatcsep/experiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)},'
Expand Down Expand Up @@ -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', '')
Expand Down

0 comments on commit da27fc7

Please sign in to comment.