Skip to content

Commit

Permalink
ENH Minor typing and formatiing fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Valerio Mariani authored and valmar committed Mar 26, 2024
1 parent 743a878 commit ef85d77
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lute/tasks/peakfinders.py
Original file line number Diff line number Diff line change
Expand Up @@ -647,10 +647,13 @@ def _run(self) -> None:
unbondnbrs=False,
).astype(numpy.uint16)

hdffh: Any
if self._task_parameters.mask_file is not None:
mask *= numpy.load(self._task_parameters.mask_file).astype(
numpy.uint16
)
with h5py.File(self._task_parameters.mask_file, "r") as hdffh:
loaded_mask: NDArray[numpy.int] = hdffh["entry_1/data_1/mask"][
:
]
mask *= loaded_mask.astype(numpy.uint16)

file_writer: CxiWriter = CxiWriter(
outdir=self._task_parameters.outdir,
Expand Down

0 comments on commit ef85d77

Please sign in to comment.