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

Refactor: group loading methods in a new abstract class Loader #228

Merged
merged 95 commits into from
Mar 10, 2022
Merged

Conversation

carnisj
Copy link
Owner

@carnisj carnisj commented Jan 28, 2022

Description

All methods related to data loading are now in the same class. Methods have been moved from the Diffractometer and Beamline classes to Loader. This is an abstract base class, so when there is a need to implement a new loading schema (e.g. for BLISS at ID01), one will only need to implement a new child class with the required methods.

A side-effect is that there is no more need for Diffractometer child classes, the beamline-specific details can be stored in a named tuple.

Type of change

  • Breaking change (will cause existing functionality to not work as expected)

How has this been tested?

The pre-processing and post-processing scripts for the example dataset run as expected.

Checklist:

  • I have made corresponding changes to the documentation
  • I have run doit and all tasks have passed

@carnisj carnisj marked this pull request as draft January 28, 2022 15:41
Jerome Carnis added 29 commits February 13, 2022 20:59
Inheritance is used to deal with beamline_specific data loading.
@carnisj
Copy link
Owner Author

carnisj commented Mar 8, 2022

Clement's branch merged, need to implement some unit tests before merging this PR into the main branch

@carnisj carnisj marked this pull request as ready for review March 8, 2022 21:10
@carnisj carnisj merged commit 28c9b66 into main Mar 10, 2022
@carnisj carnisj deleted the loader branch March 10, 2022 13:02
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.

2 participants