Skip to content

Commit

Permalink
add small change config file
Browse files Browse the repository at this point in the history
  • Loading branch information
alvaro mas committed Jan 30, 2024
1 parent 6095db0 commit 6d5e09f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ptiming_ana/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@
__version_tuple__: VERSION_TUPLE
version_tuple: VERSION_TUPLE

__version__ = version = '0.3.dev125+ge4513a5.d20240129'
__version_tuple__ = version_tuple = (0, 3, 'dev125', 'ge4513a5.d20240129')
__version__ = version = '0.3.dev126+g6095db0.d20240130'
__version_tuple__ = version_tuple = (0, 3, 'dev126', 'g6095db0.d20240130')
6 changes: 5 additions & 1 deletion ptiming_ana/phaseogram/pulsar_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,11 @@ def set_config(self,configuration_file):
#Set output file for results
self.get_results = conf['results']['save_results']
if self.get_results:
self.output_file = conf['results']['output_directory']
try:
self.output_file = conf['results']['output_directory']
except:
self.output_file = conf['results']['output_file']

self.output_dir = os.path.dirname(self.output_file)
if not os.path.exists(self.output_dir):
logger.info('Creating directory: ' + self.output_dir)
Expand Down

0 comments on commit 6d5e09f

Please sign in to comment.