Skip to content

Commit

Permalink
MNT: change OpticsCorr and PosAng IOCs to create folders recursively …
Browse files Browse the repository at this point in the history
…to save configuration name
  • Loading branch information
anacso17 committed Oct 28, 2021
1 parent 04e45ea commit 4773386
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions siriuspy/siriuspy/opticscorr/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ def get_config_name(self):
with open(self.fname, 'r') as fil:
config_name = fil.read().strip('\n')
else:
_os.makedirs(self.fpath, exist_ok=True)
config_name = get_default_config_name(self.acc, self.opticsparam)
with open(self.fname, 'w+') as fil:
fil.write(config_name)
Expand Down
1 change: 1 addition & 0 deletions siriuspy/siriuspy/posang/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ def get_config_name(self):
with open(self.fname, 'r') as fil:
config_name = fil.read().strip('\n')
else:
_os.makedirs(self.fpath, exist_ok=True)
config_name = get_default_config_name(self.tl, self.corrs_type)
with open(self.fname, 'w+') as fil:
fil.write(config_name)
Expand Down

0 comments on commit 4773386

Please sign in to comment.