Skip to content

Commit

Permalink
Merge pull request #61 from fact-project/update_pyfact
Browse files Browse the repository at this point in the history
Adapt to new pyfact version
  • Loading branch information
maxnoe authored Mar 7, 2018
2 parents 83b4390 + ccddec6 commit f8eff07
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion erna/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def collect_output(job_outputs, output_path, df_started_runs=None, **kwargs):
df_returned_data.to_json(output_path, orient='records', date_format='epoch', **kwargs )
elif extension in ['.h5', '.hdf','.hdf5']:
logger.info("Writing HDF5 to {}".format(output_path))
to_h5py(output_path, df_returned_data, key='events', mode='w', **kwargs)
to_h5py(df_returned_data, output_path, key='events', mode='w', **kwargs)
elif extension == '.csv':
logger.info("Writing CSV to {}".format(output_path))
df_returned_data.to_csv(output_path, **kwargs)
Expand Down
2 changes: 1 addition & 1 deletion erna/scripts/gather_fits.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def main(xml_name, ft_version, outputfile, config, start, end, source, datacheck
'run_start',
'run_stop',
]
to_h5py(outputfile, successful_jobs[columns], key='runs', mode='w')
to_h5py(successful_jobs[columns], outputfile, key='runs', mode='w')

with h5py.File(outputfile, 'a') as f:
f['runs'].attrs['datacheck'] = ' AND '.join(conditions)
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name='erna',
version='0.7.0',
version='0.8.0',
description='Easy RuN Access. Tools that help to do batch processing of FACT data',
url='https://github.com/fact-project/erna',
author='Kai Brügge, Jens Buss, Maximilian Nöthe',
Expand All @@ -26,7 +26,7 @@
'PyMySQL', # in anaconda
'pytz', # in anaconda
'tables', # needs to be installed by pip for some reason
'pyfact>=0.14.0',
'pyfact>=0.17.0',
'astropy',
'h5py',
# 'hdf5',
Expand Down

0 comments on commit f8eff07

Please sign in to comment.