-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Initial commit new em_nion swift project reader * Added code for parsing nsproj, ndata, and h5 file metadata from nszip, inspect get_display_items_from_nszip.ipynb in em_nion/development for the next steps * Added remaining examples from Benedikts Nion session and image concept dict * Added code for analyzing which metadata come with specific different types of display_items from swift and added code for classifying cases on unique NeXus concepts and recovery of dimension scale axes, next steps: i) create mapping table, ii) modify nx classes * Added close to jsonmap_reader mapping table exemplarily for concept NxImageRealSpace, next step i) complete this, ii) carry the code over to reader.py * Time zone converting from swift local time to utc and NxImageReaslSpace mapping table and code for interpreting modifiers working, next step, carry over to reader code to get a first nxs example with instances of NxImageRealSpace as event_data_em * Parser skeleton carried over from ipynb to reader.py tested working, i.e. reads zip file in place and reads from these the individual ndata and hdf5 files in place, next step implement assigning into the template * Support for NxImageRealSpace implemented, next steps i) parse eln_data.yaml to pass verification, ii) add default plots, iii) check if nd array correctly arranged * Mapping table for concept eels * Added generic ELN loading * CI fixes, intentional downgrading of tzlocal to 4.3 as nionswift is not explicit constraining this enough but using the default tzlocal today (5.0) in combination with py3.10 yields problems as tzlocal>4.3 and backport.zoneinfo is not supported any longer, seems that swift developers should use newer zoneinfo syntax * Generated dev-requirements within py310 to check if one can avoid the issue that backports.zoneinfo does not compile with 3.10 * Fixed buges with 3d axes, fixed default plotting, and instance indexing, added paths to default, successful linting and mypy, next step add and test the standalone ipynb for running the em_nion reader and ask Benedikt for permission to upload the multimodal imaging dataset so that we can make a complete nomad example * integrated changes from testing with local NOMAD OASIS, removed development ipynbs for em_nion * added standalone ipynb, updated all other standalone ipynb, next step upload example from Benedikt and i) upload zenodo reference, ii) test with nomad * Feature-development closed and feedback from tests with update-north branch of nomad integrated, also missing link to Benedikts dataset for the new em_nion reader added in the standalone example ipynb * Removed nionswift_tool as it seems that this is not called * Removed deprecated distutils for setuputils * More robust locating of NXtest example appdef * fixing linting error toomanylocals * Resolve merge conflict * Fix merge conflict --------- Co-authored-by: markus.kuehbach <markus.kuehbach@hu-berlin.de>
- Loading branch information
Showing
38 changed files
with
2,376 additions
and
207 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
## em_nion reader | ||
|
||
This is an example how the em_nion parser/reader/data extractor can be used as a standalone | ||
tool to convert data and metadata from a compressed nionswift project into an NXem-formatted | ||
NeXus/HDF5 file. Further details to the functionalities of the parser are documented | ||
in the parsers sub-directory: | ||
|
||
``` | ||
pynxtools/pynxtools/dataconverter/readers/em_nion | ||
``` | ||
|
||
**Write.NXem_nion.Example.1.ipynb** is the Jupyter notebook which exemplies | ||
how the parser can be used as a standalone version, i.e. without NOMAD. | ||
|
||
**eln_data_em_nion.yaml** is a YAML/text file which contains relevant data which are not | ||
contained typically in files from technology partners. These data have been collected | ||
either by editing the file manually or by using an electronic lab notebook (ELN), | ||
such as the NOMAD ELN. | ||
A few example files from real atom probe reconstructions and ranging definitions are | ||
offered as downloads to run the example with the above-mentioned Juypter notebook. | ||
|
||
Every other ELN can be used with this parser provided that this ELN writes its data | ||
into a YAML file with the same keywords and structure as is exemplified in the | ||
above-mentioned YAML file. |
Oops, something went wrong.