Skip to content

Commit

Permalink
Removed deprecated add_specific_metadata code, unified reporting when…
Browse files Browse the repository at this point in the history
… a parser does not find content
  • Loading branch information
atomprobe-tc committed Sep 4, 2024
1 parent cae676e commit 0c20c00
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 390 deletions.
350 changes: 0 additions & 350 deletions src/pynxtools_em/concepts/mapping_functors.py

This file was deleted.

1 change: 1 addition & 0 deletions src/pynxtools_em/parsers/hfive_apex.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ def parse(self, template: dict) -> dict:
"""Read and normalize away EDAX/APEX-specific formatting with an equivalent in NXem."""
if not self.supported:
return template
print(f"Parsing via EDAX APEX EDAXH5 HDF5 file parser...")
with h5py.File(f"{self.file_path}", "r") as h5r:
for grp_nm in list(h5r["/"]):
for sub_grp_nm in list(h5r[grp_nm]):
Expand Down
5 changes: 0 additions & 5 deletions src/pynxtools_em/parsers/image_png_protochips.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,11 +236,6 @@ def parse(self, template: dict) -> dict:
)
self.process_event_data_em_metadata(template)
self.process_event_data_em_data(template)
else:
print(
f"{self.file_path} is not a Protochips-specific "
f"PNG file that this parser can process !"
)
return template

def sort_event_data_em(self) -> List:
Expand Down
Loading

0 comments on commit 0c20c00

Please sign in to comment.