Skip to content

Commit

Permalink
Fixes mpes config file
Browse files Browse the repository at this point in the history
  • Loading branch information
domna committed Sep 12, 2023
1 parent cce281f commit a096639
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 19 deletions.
16 changes: 8 additions & 8 deletions tests/data/dataconverter/readers/mpes/config_file.json
Original file line number Diff line number Diff line change
Expand Up @@ -339,12 +339,12 @@
"/ENTRY[entry]/DATA[data]/@signal": "data",
"/ENTRY[entry]/DATA[data]/data": "@data:data",
"/ENTRY[entry]/DATA[data]/data/@units": "counts",
"/ENTRY[entry]/DATA[data]/VARIABLE[kx]": "@data:kx.data",
"/ENTRY[entry]/DATA[data]/VARIABLE[kx]/@units": "@data:kx.unit",
"/ENTRY[entry]/DATA[data]/VARIABLE[ky]": "@data:ky.data",
"/ENTRY[entry]/DATA[data]/VARIABLE[ky]/@units": "@data:ky.unit",
"/ENTRY[entry]/DATA[data]/VARIABLE[energy]": "@data:energy.data",
"/ENTRY[entry]/DATA[data]/VARIABLE[energy]/@units": "@data:energy.unit",
"/ENTRY[entry]/DATA[data]/VARIABLE[delay]": "@data:delay.data",
"/ENTRY[entry]/DATA[data]/VARIABLE[delay]/@units": "@data:delay.unit"
"/ENTRY[entry]/DATA[data]/AXISNAME[kx]": "@data:kx.data",
"/ENTRY[entry]/DATA[data]/AXISNAME[kx]/@units": "@data:kx.unit",
"/ENTRY[entry]/DATA[data]/AXISNAME[ky]": "@data:ky.data",
"/ENTRY[entry]/DATA[data]/AXISNAME[ky]/@units": "@data:ky.unit",
"/ENTRY[entry]/DATA[data]/AXISNAME[energy]": "@data:energy.data",
"/ENTRY[entry]/DATA[data]/AXISNAME[energy]/@units": "@data:energy.unit",
"/ENTRY[entry]/DATA[data]/AXISNAME[delay]": "@data:delay.data",
"/ENTRY[entry]/DATA[data]/AXISNAME[delay]/@units": "@data:delay.unit"
}
12 changes: 1 addition & 11 deletions tests/dataconverter/test_readers.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,17 +105,7 @@ def test_has_correct_read_func(reader):


@pytest.mark.parametrize("reader_name,nxdl,undocumented_keys", [
('mpes', 'NXmpes', [
'/@default',
'/ENTRY[entry]/DATA[data]/VARIABLE[kx]',
'/ENTRY[entry]/DATA[data]/VARIABLE[kx]/@units',
'/ENTRY[entry]/DATA[data]/VARIABLE[ky]',
'/ENTRY[entry]/DATA[data]/VARIABLE[ky]/@units',
'/ENTRY[entry]/DATA[data]/VARIABLE[energy]',
'/ENTRY[entry]/DATA[data]/VARIABLE[energy]/@units',
'/ENTRY[entry]/DATA[data]/VARIABLE[delay]',
'/ENTRY[entry]/DATA[data]/VARIABLE[delay]/@units',
])
('mpes', 'NXmpes', ['/@default'])
])
def test_shows_correct_warnings(reader_name, nxdl, undocumented_keys):
"""
Expand Down

0 comments on commit a096639

Please sign in to comment.