Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 13, 2025
1 parent 03ce2cf commit 8064a80
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/mps/analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@

ExcludedData = namedtuple(
"ExcludedData",
("new_data, included_indices, " "all_included_indices"),
("new_data, included_indices, all_included_indices"),
)


Expand Down
2 changes: 1 addition & 1 deletion src/mps/load.py
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@ def __setstate__(self, state):
self.__dict__.update(state)

def __repr__(self):
return ("{self.__class__.__name__}" "({self._fname})").format(self=self)
return ("{self.__class__.__name__}({self._fname})").format(self=self)

@property
def name(self):
Expand Down
2 changes: 1 addition & 1 deletion src/mps/plotter.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@

has_mpl = True
except ImportError:
logger.debug(("Unable to import matplotlib. " "Plotting will not be possible"))
logger.debug(("Unable to import matplotlib. Plotting will not be possible"))
has_mpl = False
plt = None

Expand Down
2 changes: 1 addition & 1 deletion src/mps/scripts/summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def plot(
"cAPD80 [ms]",
"cAPD80 stdev",
"cAPD80 #removed",
"ratio APD30/APD80" "APD90 [ms]",
"ratio APD30/APD80APD90 [ms]",
"triangulation [ms]",
"triangulation stdev",
"APD90 [ms]",
Expand Down
8 changes: 4 additions & 4 deletions src/mps/tifffile.py
Original file line number Diff line number Diff line change
Expand Up @@ -1040,7 +1040,7 @@ def save(
photometric = RGB
if datadtypechar not in "B":
raise ValueError(
"ImageJ does not support data type %s " "for RGB" % datadtypechar,
"ImageJ does not support data type %s for RGB" % datadtypechar,
)
elif photometric is None:
photometric = MINISBLACK
Expand Down Expand Up @@ -4900,7 +4900,7 @@ def open(self):
pass
else:
raise ValueError(
"The first parameter must be a file name, " "seekable binary stream, or FileHandle",
"The first parameter must be a file name, seekable binary stream, or FileHandle",
)

if self._offset:
Expand Down Expand Up @@ -6301,14 +6301,14 @@ def FRAME_ATTRS():
def FILE_FLAGS():
# TiffFile and TiffPage 'is_\*' attributes
exclude = set(
"reduced final memmappable contiguous tiled " "chroma_subsampled".split(),
"reduced final memmappable contiguous tiled chroma_subsampled".split(),
)
return set(a[3:] for a in dir(TiffPage) if a[:3] == "is_" and a[3:] not in exclude)

def FILE_EXTENSIONS():
# TIFF file extensions
return tuple(
"tif tiff ome.tif lsm stk qptiff pcoraw " "gel seq svs bif tf8 tf2 btf".split(),
"tif tiff ome.tif lsm stk qptiff pcoraw gel seq svs bif tf8 tf2 btf".split(),
)

def FILEOPEN_FILTER():
Expand Down
2 changes: 1 addition & 1 deletion src/mps/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@

grid_settings = namedtuple(
"grid_settings",
("nx, ny, dx, dy, x_start," " y_start, x_end, y_end"),
("nx, ny, dx, dy, x_start, y_start, x_end, y_end"),
)

logger = logging.getLogger(__name__)
Expand Down

0 comments on commit 8064a80

Please sign in to comment.