Skip to content

Commit

Permalink
tiny but big error in getting EMS encoded errors, didn't call encoded…
Browse files Browse the repository at this point in the history
… value but just value, fixed now
  • Loading branch information
ceube1 committed Mar 18, 2022
1 parent 92b877f commit a67471c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion emspy/mdpmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,9 288,12 @@ def get_ems_encoded_values(self, ems_objects_or_names: list):
if encoded_value is None and ems_obj.encoding_fxn is not None:
# rerun in case of encoding fxn argument changes
encoded_value = self.run_encoding_fxn(ems_obj, ems_obj.value)
elif ems_obj.encoded_fxn is not None:
# return encoded value that was attained when first getting value
encoded_value = self.ems_obj.encoded_value
else:
# no encoding value, return normal value
encoded_value = ems_obj.encoded_value
encoded_value = ems_obj.value

encoded_values_dict[ems_obj.name] = encoded_value

Expand Down

0 comments on commit a67471c

Please sign in to comment.