Skip to content

Commit 28c9083

Browse files
authored
auto updates (#6760)
1 parent 3410794 commit 28c9083

File tree

5 files changed

+6
-9
lines changed

5 files changed

+6
-9
lines changed

.github/workflows/docker.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,11 @@ jobs:
8585
container:
8686
image: docker://projectmonai/monai:latest
8787
options: "--shm-size=4g --ipc=host"
88-
runs-on: ubuntu-latest
88+
runs-on: [self-hosted, linux, X64, docker]
8989
steps:
9090
- name: Import
9191
run: |
92-
export CUDA_VISIBLE_DEVICES=$(python -m tests.utils | tail -n 1)
93-
echo $CUDA_VISIBLE_DEVICES
92+
export CUDA_VISIBLE_DEVICES= # cpu-only
9493
python -c 'import monai; monai.config.print_debug_info()'
9594
cd /opt/monai
9695
ls -al

monai/apps/deepgrow/transforms.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -441,8 +441,8 @@ def __call__(self, data):
441441

442442
if np.all(np.less(current_size, self.spatial_size)):
443443
cropper = SpatialCrop(roi_center=center, roi_size=self.spatial_size)
444-
box_start = np.array([s.start for s in cropper.slices]) # type: ignore
445-
box_end = np.array([s.stop for s in cropper.slices]) # type: ignore
444+
box_start = np.array([s.start for s in cropper.slices])
445+
box_end = np.array([s.stop for s in cropper.slices])
446446
else:
447447
cropper = SpatialCrop(roi_start=box_start, roi_end=box_end)
448448

monai/data/ultrasound_confidence_map.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ def confidence_estimation(self, img, seeds, labels, beta, gamma):
301301
m[:, 0] = labels == 1
302302

303303
# Right-handside (-B^T*M)
304-
rhs = -b @ m # type: ignore
304+
rhs = -b @ m
305305

306306
# Solve linear system
307307
x = self._solve_linear_system(lap, rhs)
@@ -334,7 +334,7 @@ def __call__(self, data: NDArray, sink_mask: NDArray | None = None) -> NDArray:
334334

335335
if self.mode == "RF":
336336
# MATLAB hilbert applies the Hilbert transform to columns
337-
data = np.abs(hilbert(data, axis=0)).astype("float64") # type: ignore
337+
data = np.abs(hilbert(data, axis=0)).astype("float64")
338338

339339
seeds, labels = self.get_seed_and_labels(data, self.sink_mode, sink_mask)
340340

monai/transforms/intensity/array.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939

4040
skimage, _ = optional_import("skimage", "0.19.0", min_version)
4141

42-
4342
__all__ = [
4443
"RandGaussianNoise",
4544
"RandRicianNoise",

tests/test_ultrasound_confidence_map_transform.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@
4949
]
5050
)
5151

52-
5352
SINK_ALL_OUTPUT = np.array(
5453
[
5554
[1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0],

0 commit comments

Comments
 (0)