Skip to content

Commit

Permalink
FIX: avoid error when require_setup=False and no setup group is present
Browse files Browse the repository at this point in the history
  • Loading branch information
tritemio committed Sep 30, 2016
1 parent d437876 commit 42d7ece
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions phconvert/hdf5.py
Original file line number Diff line number Diff line change
Expand Up @@ -603,6 +603,8 @@ def _normalize_detectors_specs(data_dict):

def _normalize_setup_arrays(data_dict):
"""Make sure arrays of float in setup are arrays of floats."""
if 'setup' not in data_dict:
return
# Convert sequences of strings in 'setup' in arrays of floats
# Useful when input is from YAML whose parser retrives floats a strings
setup = data_dict['setup']
Expand Down

0 comments on commit 42d7ece

Please sign in to comment.