Skip to content

Commit

Permalink
do not open file as r+
Browse files Browse the repository at this point in the history
  • Loading branch information
kbruegge committed Jul 4, 2018
1 parent 0ca68d0 commit 7eaa907
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aict_tools/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def read_telescope_data(path, klaas_config, columns, feature_generation_config=N
if klaas_config.has_multiple_telescopes:
join_keys = [klaas_config.run_id_column, klaas_config.array_event_id_column]
if columns:
with h5py.File(path, 'r+') as f:
with h5py.File(path, 'r') as f:
array_event_columns = set(f[klaas_config.array_events_key].keys()) & set(columns)
telescope_event_columns = set(f[klaas_config.telescope_events_key].keys()) & set(columns)
array_event_columns |= set(join_keys)
Expand Down

0 comments on commit 7eaa907

Please sign in to comment.