Skip to content
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

Pluginise mpes reader #243

Merged
merged 3 commits into from
Feb 21, 2024
Merged

Pluginise mpes reader #243

merged 3 commits into from
Feb 21, 2024

Conversation

domna
Copy link
Collaborator

@domna domna commented Feb 20, 2024

The MPES reader is moving into its own plugin at https://github.com/FAIRmat-NFDI/pynxtools-mpes

Fixes #234

@domna domna marked this pull request as draft February 20, 2024 16:14
@domna domna self-assigned this Feb 20, 2024
@domna domna force-pushed the pluginise-mpes-reader branch from ca90db9 to bb168ef Compare February 20, 2024 16:36
@coveralls
Copy link

coveralls commented Feb 20, 2024

Pull Request Test Coverage Report for Build 7977723693

Details

  • 12 of 12 (100.0%) changed or added relevant lines in 2 files are covered.
  • 41 unchanged lines in 8 files lost coverage.
  • Overall coverage decreased (-1.0%) to 43.558%

Files with Coverage Reduction New Missed Lines %
pynxtools/dataconverter/readers/em_spctrscpy/utils/hspy/em_hspy_adf.py 2 11.38%
pynxtools/dataconverter/helpers.py 3 94.39%
pynxtools/dataconverter/readers/em_spctrscpy/utils/hspy/em_hspy_eels.py 3 9.38%
pynxtools/dataconverter/writer.py 3 89.08%
pynxtools/dataconverter/readers/em_spctrscpy/utils/hspy/em_hspy_xray.py 4 8.59%
pynxtools/nexus/nxdl_utils.py 8 73.7%
pynxtools/dataconverter/readers/utils.py 9 83.48%
pynxtools/nexus/nexus.py 9 71.46%
Totals Coverage Status
Change from base Build 7976686706: -1.0%
Covered Lines: 4713
Relevant Lines: 10820

💛 - Coveralls

@domna domna marked this pull request as ready for review February 20, 2024 17:38
@domna
Copy link
Collaborator Author

domna commented Feb 20, 2024

@sherjeelshabih I removed all the mpes related tests and move this into the reader plugin. Do you think we need to recreate some tests for the example reader to cover functionality?

@rettigl This is mainly fyi. When everything is moved you need to do an additional pip install pynxtools-mpes and everything should be picked up automatically from there. I will also add this as an install extra as [mpes]

@domna domna requested review from lukaspie and removed request for sherjeelshabih February 21, 2024 09:30
@lukaspie
Copy link
Collaborator

lukaspie commented Feb 21, 2024

@rettigl This is mainly fyi. When everything is moved you need to do an additional pip install pynxtools-mpes and everything should be picked up automatically from there. I will also add this as an install extra as [mpes]

That's a good idea also for the other plugins. Maybe we could also make an install extra as [all-readers] or something that installs all plugins (at least the ones that we are aware of or for which we provide its own install extra)?

EDIT: I think in general it would be nice to also list the supported plugins in the pynxtools main repo somewhere (maybe also in README?)

@domna
Copy link
Collaborator Author

domna commented Feb 21, 2024

@rettigl This is mainly fyi. When everything is moved you need to do an additional pip install pynxtools-mpes and everything should be picked up automatically from there. I will also add this as an install extra as [mpes]

That's a good idea also for the other plugins. Maybe we could also make an install extra as [all-readers] or something that installs all plugins (at least the ones that we are aware of or for which we provide its own install extra)?

Yes, this is a good idea. We should have this for all plugins we support and I think it's also fine if people want to add their readers there.

EDIT: I think in general it would be nice to also list the supported plugins in the pynxtools main repo somewhere (maybe also in README?)

Yes, maybe we can get the list from the pynxtools-plugin topic. That way it would automatically update :) If not we can just keep a list but link to the topic.

@domna
Copy link
Collaborator Author

domna commented Feb 21, 2024

#247

@sherjeelshabih
Copy link
Collaborator

@sherjeelshabih I removed all the mpes related tests and move this into the reader plugin. Do you think we need to recreate some tests for the example reader to cover functionality?

I'll have a look on what tests etc will be needed separately. You can keep this PR for dealing with the MPES reader. I'll make an issue to check test coverage again for the JOSS paper.

@domna domna mentioned this pull request Feb 21, 2024
11 tasks
Copy link
Collaborator

@lukaspie lukaspie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, will do the same for https://github.com/FAIRmat-NFDI/pynxtools-xps.

@domna domna merged commit 4e6cddb into master Feb 21, 2024
7 checks passed
@domna domna deleted the pluginise-mpes-reader branch February 21, 2024 12:36
@rettigl
Copy link
Collaborator

rettigl commented Feb 21, 2024

I tested it, and it works, however this changes the functionality of pynxtools, so we should discuss how to adjust versioning accordingly (we are probably the only ones using the mpes reader right now, but the next version of pynxtools without extras definition will break the behavior).

@domna
Copy link
Collaborator Author

domna commented Feb 22, 2024

I tested it, and it works, however this changes the functionality of pynxtools, so we should discuss how to adjust versioning accordingly (we are probably the only ones using the mpes reader right now, but the next version of pynxtools without extras definition will break the behavior).

Yes, we should follow proper semantic versioning for pynxtools to indicate when we introduce breaking changes. See #225. Ideally, we would now do the main changes until a v1.0.0 release so that we don't have to introduce breaking changes for a long time.

I would do a v0.1.0 release for the next version to indicate that we break something.

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.

Pluginise mpes reader
5 participants