8000 Atoms_typs and 'energy_scan_mood' by RubelMozumder · Pull Request #100 · FAIRmat-NFDI/pynxtools · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Atoms_typs and 'energy_scan_mood' #100

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

Merged
merged 2 commits into from
May 5, 2023
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion pynxtools/dataconverter/readers/xps/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ def fill_atom_types(key):
template[modified_key] = field_value
if atom_types:
modified_key = modified_key.replace('chemical_formula', 'atom_types')
template[modified_key] = '[ ' + ', '.join(atom_types) + ' ]'
template[modified_key] = ', '.join(atom_types)

def fill_from_value(key):
field_value = eln_data_dict[key]
Expand Down
2 changes: 1 addition & 1 deletion pynxtools/nexus/nexus.py
Original file line number Diff line number Diff line change
Expand Up @@ -832,7 +832,7 @@ def helper_get_inherited_nodes(hdf_info, elist, pind, attr):
return hdf_path, hdf_node, hdf_class_path, elist, pind, attr, html_name


# @lru_cache(maxsize=None)
@lru_cache(maxsize=None)
def get_inherited_nodes(nxdl_path: str = None,
nx_name: str = None, elem: ET.Element = None,
hdf_node=None, attr=False):
Expand Down
1 change: 1 addition & 0 deletions tests/data/dataconverter/readers/xps/eln_data.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Instrument:
Energydispersion:
entrance_slit: "Unknown"
scheme: "hemispherical"
energy_scan_mode: "fixed"
pass_energy:
unit: null
Detector:
Expand Down
0