Skip to content

Conversation

@paskino
Copy link
Contributor

@paskino paskino commented Oct 23, 2025

Changes in this pull request

Adds unit tests for STIR AcquisitionData subsets.

Testing performed

  • CI only tested

Related issues

#1111

Checklist before requesting a review

  • I have performed a self-review of my code
  • I have added docstrings/doxygen in line with the guidance in the developer guide
  • I have implemented unit tests that cover any new or modified functionality
  • The code builds and runs on my machine
  • CHANGES.md has been updated with any functionality change

Contribution Notes

Please read and adhere to the contribution guidelines.

Please tick the following:

  • The content of this Pull Request (the Contribution) is intentionally submitted for inclusion in SIRF (the Work) under the terms and conditions of the Apache-2.0 License.

@paskino paskino force-pushed the add_subset_algebra_test branch from 766d60b to ca9cdb1 Compare October 24, 2025 10:08
@paskino paskino self-assigned this Oct 24, 2025
added to changes

removed commented out code
handle init pars

set default storage scheme to file
@paskino paskino force-pushed the add_subset_algebra_test branch from 0c058e9 to c1ba035 Compare October 25, 2025 17:14
@KrisThielemans KrisThielemans added this to the v3.9 milestone Oct 26, 2025
@KrisThielemans
Copy link
Member

I suggest we merge this. However, #1111 will have to be reopened afterwards, as this PR doesn't fix that issue, it just tests if algebraic operations work with "in memory" (I don't know how to "unlink")

@paskino
Copy link
Contributor Author

paskino commented Oct 27, 2025

To unlink you have to remove "closes " from the description (I did that).
I added both tests for memory and file. Currently all file tests expect a failure, so when the actual bug is removed we can quickly add the unit tests.

@paskino paskino force-pushed the add_subset_algebra_test branch 2 times, most recently from fdc06cc to 111caae Compare October 27, 2025 10:40
both test_division_by_scalar_zero and test_division_by_datacontainer_zero just assert True so override is not required
@paskino paskino force-pushed the add_subset_algebra_test branch from 111caae to c4585c2 Compare October 27, 2025 11:16
@paskino paskino merged commit 306f0e7 into master Oct 27, 2025
12 of 15 checks passed
@paskino paskino deleted the add_subset_algebra_test branch October 27, 2025 13:54
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.

3 participants