Skip to content

Commit

Permalink
filter mrcfile loading warnings (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
LorenzLamm authored Jan 11, 2025
1 parent 079201e commit 83415b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/membrain_seg/segmentation/dataloading/data_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,12 +291,12 @@ def load_tomogram(
warnings.filterwarnings(
"ignore",
message="Map ID string not found - \
not an MRC file, or file is corrupt",
not an MRC file, or file is corrupt",
)
warnings.filterwarnings(
"ignore",
message="Unrecognised machine stamp: \
0x00 0x00 0x00 0x00",
0x00 0x00 0x00 0x00",
)
with mrcfile.open(filename, permissive=True) as tomogram:
data = tomogram.data.copy()
Expand Down

0 comments on commit 83415b6

Please sign in to comment.