Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes asterisk notation for mpes reader #236

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions pynxtools/dataconverter/readers/mpes/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,10 +273,7 @@ def fill_data_indices_in_config(config_file_dict, x_array_loaded):
new_key = key.replace("*", dim)
new_value = value.replace("*", dim)

if (
new_key not in config_file_dict.keys()
and new_value not in config_file_dict.values()
):
if new_key not in config_file_dict.keys():
config_file_dict[new_key] = new_value

config_file_dict.pop(key)
Expand Down
Loading