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

Unify datasets 10: Remove StrictDataset #2402

Merged
merged 6 commits into from
Nov 28, 2024
Merged

Conversation

samtygier-stfc
Copy link
Collaborator

@samtygier-stfc samtygier-stfc commented Nov 15, 2024

Issue

Closes #2199

Needs rebase after #2401

Description

This completes the task of unifying the MixedDataset and StrictDataset into Dataset

Migrates the last few places using StrictDataset.

Testing

Has updates to some tests

Acceptance Criteria

Test opening a dataset from Tiffs.
Test opening and saving from nexus files (but fix #2404 first)

Documentation

How have you changed the documentation to reflect your changes? All changes should be noted in the appropriate file in docs/release_notes

@coveralls
Copy link

coveralls commented Nov 15, 2024

Coverage Status

coverage: 74.033% (-0.2%) from 74.185%
when pulling 2b7887a on 2199-unify-datasets-10
into c7980a2 on main.

@samtygier-stfc samtygier-stfc marked this pull request as ready for review November 20, 2024 11:50
This used to be used to filter datasets by type, but that is no longer needed since the unification.

The test_do_reload_datasets_by_dataset_type() test is also no loner needed.
…asetSelectorWidgetPresenterTests, SpectrumViewerWindowPresenterTest
@JackEAllen JackEAllen self-requested a review November 26, 2024 09:17
Copy link
Collaborator

@JackEAllen JackEAllen left a comment

Choose a reason for hiding this comment

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

The changes look good. Thank you for your hard work refactoring Mixed and Strict Dataset into a generic Dataset class. Overall, working with datasets will be much easier. I have ran unit tests and tested manually with a few different datasets including saving and loading of nexus datasets.
Happy to approve 🙂

@JackEAllen JackEAllen added this pull request to the merge queue Nov 28, 2024
Merged via the queue into main with commit e4732a8 Nov 28, 2024
8 checks passed
@JackEAllen JackEAllen deleted the 2199-unify-datasets-10 branch November 28, 2024 10:31
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.

Saving to nexus: ERROR: Failed to save data. Error: None Unify Datasets
3 participants