- Can pycharm please stop adding wrong imports please?

This commit is contained in:
Wim Pomp
2025-03-19 16:14:28 +01:00
parent b7dadb645e
commit 3346ed3a48
2 changed files with 7 additions and 8 deletions

View File

@@ -8,7 +8,6 @@ from pathlib import Path
import numpy as np import numpy as np
import tifffile import tifffile
import yaml import yaml
from lfdfiles import TiffFile
from ome_types import from_xml, model from ome_types import from_xml, model
from .. import AbstractReader, try_default from .. import AbstractReader, try_default
@@ -36,7 +35,7 @@ class Reader(AbstractReader, ABC):
match = re.match(r'^(.*)(pos.*)$', self.path.stem, flags=re.IGNORECASE) match = re.match(r'^(.*)(pos.*)$', self.path.stem, flags=re.IGNORECASE)
if match is not None and len(match.groups()) == 2: if match is not None and len(match.groups()) == 2:
a, b = match.groups() a, b = match.groups()
file0 = TiffFile(self.path.with_stem(a + re.sub(r'\d', '0', b))) with tifffile.TiffFile(self.path.with_stem(a + re.sub(r'\d', '0', b))) as file0:
with warnings.catch_warnings(): with warnings.catch_warnings():
warnings.simplefilter('ignore', category=UserWarning) warnings.simplefilter('ignore', category=UserWarning)
ome = from_xml(file0.ome_metadata) ome = from_xml(file0.ome_metadata)

View File

@@ -1,6 +1,6 @@
[project] [project]
name = "ndbioimage" name = "ndbioimage"
version = "2025.3.1" version = "2025.3.2"
description = "Bio image reading, metadata and some affine registration." description = "Bio image reading, metadata and some affine registration."
authors = [ authors = [
{ name = "W. Pomp", email = "w.pomp@nki.nl" } { name = "W. Pomp", email = "w.pomp@nki.nl" }