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

Fix dataloading issues #28

Merged
merged 1 commit into from
Jul 27, 2023
Merged

Fix dataloading issues #28

merged 1 commit into from
Jul 27, 2023

Conversation

LorenzLamm
Copy link
Collaborator

mrcfile should open files with permissive=True argument and make a copy of the tomogram data to prevent writing permission issues.

@@ -241,17 +241,18 @@ def load_tomogram(
data = tomogram.data.copy()
data = np.transpose(data, (2, 1, 0))
header = tomogram.header
voxel_size = tomogram.voxel_size
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Need to define voxel size here. Later tomogram.header will return None

@LorenzLamm LorenzLamm marked this pull request as ready for review July 27, 2023 10:41
@LorenzLamm LorenzLamm merged commit 70313eb into main Jul 27, 2023
11 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.

1 participant