8000 Apm em sprint14 p2 by mkuehbach · Pull Request #117 · FAIRmat-NFDI/pynxtools · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Apm em sprint14 p2 #117

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 23 commits into from
Jun 1, 2023
Merged

Apm em sprint14 p2 #117

merged 23 commits into from
Jun 1, 2023

Conversation

mkuehbach
Copy link
Collaborator

No description provided.

markus.kuehbach added 15 commits May 22, 2023 17:21
…, inspect get_display_items_from_nszip.ipynb in em_nion/development for the next steps
…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
…xImageRealSpace, next step i) complete this, ii) carry the code over to reader.py
…ce 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
…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
…a.yaml to pass verification, ii) add default plots, iii) check if nd array correctly arranged
…ot 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
… issue that backports.zoneinfo does not compile with 3.10
…ng, 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
… upload example from Benedikt and i) upload zenodo reference, ii) test with nomad
@mkuehbach mkuehbach requested a review from sanbrock May 26, 2023 12:21
@mkuehbach
Copy link
Collaborator Author
mkuehbach commented May 26, 2023

From my side I am waiting now for Benedikt to grant permission for uploading the example file, in the meantime I continue testing this with nomad, please observe that the definitions have been updated also to point now to the latest

(permission was happily granted by Benedikt and data were uploaded on Zenodo https://doi.org/10.5281/zenodo.7979668
2022-02-18_Metadata_Kuehbach.zip.nionswift

@coveralls
Copy link
coveralls commented May 26, 2023

Pull Request Test Coverage Report for Build 5143069703

  • 98 of 537 (18.25%) changed or added relevant lines in 17 files are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage decreased (-1.6%) to 49.811%

Changes Missing Coverage Covered Lines Changed/Added Lines %
pynxtools/dataconverter/readers/em_spctrscpy/utils/em_nexus_plots.py 0 3 0.0%
pynxtools/dataconverter/readers/apm/utils/apm_generic_eln_io.py 0 4 0.0%
pynxtools/dataconverter/readers/em_spctrscpy/utils/em_generic_eln_io.py 0 4 0.0%
pynxtools/dataconverter/readers/em_nion/utils/swift_uuid_to_file_name.py 4 12 33.33%
pynxtools/dataconverter/readers/em_om/utils/generic_eln_io.py 0 10 0.0%
pynxtools/dataconverter/readers/em_nion/utils/swift_dimscale_axes.py 5 21 23.81%
pynxtools/dataconverter/readers/em_nion/reader.py 11 38 28.95%
pynxtools/dataconverter/readers/em_nion/concepts/swift_display_items_to_nx_concepts.py 6 41 14.63%
pynxtools/dataconverter/readers/em_nion/utils/use_case_selector.py 6 43 13.95%
pynxtools/dataconverter/readers/em_nion/concepts/swift_handle_nx_concepts.py 7 58 12.07%
Files with Coverage Reduction New Missed Lines %
pynxtools/dataconverter/readers/em_om/utils/generic_eln_io.py 1 9.86%
Totals Coverage Status
Change from base Build 5142266817: -1.6%
Covered Lines: 5282
Relevant Lines: 10604

💛 - Coveralls

@mkuehbach
Copy link
Collaborator Author

Timeout from coveralls :(

@domna
Copy link
Collaborator
domna commented May 26, 2023

Please check if the updated dependencies still work with the dependencies in nomad before merging this.

Doing this currently based on the nomad-FAIR update-north branch, current situation is that this works I push relevant changes from this testing to the following branch update-north-markus

@domna
Copy link
Collaborator
domna commented May 30, 2023

Please check if the updated dependencies still work with the dependencies in nomad before merging this.

Just checked this in the nomad/update-north-markus branch and the requirements are successfully generated 👍️

Doing this currently based on the nomad-FAIR update-north branch, current situation is that this works I push relevant changes from this testing to the following branch update-north-markus

@domna
Copy link
Collaborator
domna commented May 30, 2023

This line will probably fail in nomad:

d_inq_nd, c_inq_nd):

Should be:
d_inq_nd=None, c_inq_nd=None):

This is fixed in master already. So after merging this it should be fine (but the respective MR in nomad with this branch will fail).

markus.kuehbach added 3 commits May 30, 2023 18:53
…branch of nomad integrated, also missing link to Benedikts dataset for the new em_nion reader added in the standalone example ipynb
@sanbrock sanbrock merged commit 2f3f99f into master Jun 1, 2023
@sanbrock sanbrock deleted the apm-em-sprint14-p2 branch June 1, 2023 10:20
RubelMozumder pushed a commit that referenced this pull request Jun 28, 2023
* 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants
0