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

Add nexus reader #387

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Add nexus reader #387

wants to merge 7 commits into from

Conversation

DanicaSTFC
Copy link
Contributor

@DanicaSTFC DanicaSTFC commented Jan 30, 2025

Closes #192

@DanicaSTFC DanicaSTFC requested a review from paskino January 30, 2025 14:49
@DanicaSTFC DanicaSTFC self-assigned this Jan 30, 2025
@DanicaSTFC DanicaSTFC linked an issue Jan 30, 2025 that may be closed by this pull request
@DanicaSTFC DanicaSTFC added this to the Version 25.0.0 milestone Jan 30, 2025

Enhancements:
- Adds nexus ".nxs" files reader #387

Copy link
Contributor

Choose a reason for hiding this comment

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

add updated viewer version

target_size = kwargs.get('target_size', 0.125)
origin = kwargs.get('origin', (0, 0, 0))
target_z_extent = kwargs.get('target_z_extent', (0, 0))
bits_per_byte = 16
Copy link
Contributor

Choose a reason for hiding this comment

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

needs checking

@@ -561,6 +599,97 @@ def loadTif(*args, **kwargs):
# all good, return 0
return 0

def loadNxs(*args, **kwargs):
"""
Loads a NeXus (.nxs) file and processes its dataset into a raw image format.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
Loads a NeXus (.nxs) file and processes its dataset into a raw image format.
Loads a NeXus (.nxs) file and processes its dataset into a vtkImageData.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🏗 In progress
Development

Successfully merging this pull request may close these issues.

Support HDF5 and NeXuS
2 participants