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

Standalone viewer app defaults to downsample on Z #362

Merged
merged 15 commits into from
Oct 22, 2023

Conversation

paskino
Copy link
Collaborator

@paskino paskino commented Jul 31, 2023

The standalone app now defaults to downsample in all 3 dimensions, unless it's loading an HDF5 where it can infer that we are importing acquisition data.

closes #359

@lauramurgatroyd
Copy link
Member

Some of the unit tests are also using 'int' instead of 'round' which is why the gh-actions are failing.

@paskino paskino mentioned this pull request Sep 11, 2023
@paskino
Copy link
Collaborator Author

paskino commented Sep 14, 2023

This PR fixes #359 by moving some functionality to ccpi.viewer.utils.conversion and uses pytest for testing.

Copy link
Member

@lauramurgatroyd lauramurgatroyd left a comment

Choose a reason for hiding this comment

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

I approve of the changes, except when I run locally I get the error:

_______________________________ TestViewerMainWindow.test_all ________________________________

self = <test.test_viewer_main_windows.TestViewerMainWindow testMethod=test_all>

    def test_all(self):
        global _instance
        if _instance is None:
>           _instance = QApplication(sys.argv)
E           RuntimeError: Please destroy the QApplication singleton before creating a new QApplication instance.

test_viewer_main_windows.py:42: RuntimeError

FAILED test_viewer_main_windows.py::TestViewerMainWindow::test_all - RuntimeError: Please destroy the QApplication singleton before creating a new QApplication...

@paskino
Copy link
Collaborator Author

paskino commented Oct 22, 2023

Possibly the failure is due to #367

@paskino paskino merged commit 283e9f0 into TomographicImaging:master Oct 22, 2023
3 checks passed
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.

Downsampling should use round rather than int
2 participants