Skip to content

Commit

Permalink
fixing typo when handling unlog to log parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
tsunhopang committed Aug 9, 2023
1 parent 1b993ee commit 11225e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nmma/em/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ def generate_lightcurve(self, sample_times, parameters):
parameters_list.append(new_parameters[parameter_name])
except KeyError:
if 'log10' in parameter_name:
parameters_list.append(np.log10(new_parameters[parameter_name.replace('log10', '')]))
parameters_list.append(np.log10(new_parameters[parameter_name.replace('log10_', '')]))
else:
parameters_list.append(10**new_parameters[f'log10_{parameter_name}'])

Expand Down

0 comments on commit 11225e4

Please sign in to comment.