Skip to content

Commit

Permalink
BUG: Fixed an issue treating an entire parameter as frozen could raise (
Browse files Browse the repository at this point in the history
  • Loading branch information
BvB93 committed Feb 24, 2021
1 parent 86c856f commit fa5452b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion FOX/armc/sanitization.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,10 @@ def get_param(dct: ParamMapping_) -> Tuple[ParamMapping, dict, dict, ValidationD
if _sub_prm_dict_frozen is not None:
for *_key, value in _get_prm(_sub_prm_dict_frozen):
key = tuple(_key)
unit = data.loc[key[:2], 'unit'].iat[0]
try:
unit = data.loc[key[:2], 'unit'].iat[0]
except KeyError:
unit = ''
data.loc[key, :] = [value, value, True, False, -np.inf, np.inf, 0, unit]
data.sort_index(inplace=True)

Expand Down

0 comments on commit fa5452b

Please sign in to comment.