Skip to content

Commit

Permalink
guard type hint
Browse files Browse the repository at this point in the history
  • Loading branch information
talonchandler committed Dec 21, 2024
1 parent cdb7c44 commit 9cdc21d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion waveorder/visuals/napari_visuals.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
from waveorder.visuals.utils import complex_tensor_to_rgb
from typing import TYPE_CHECKING

import numpy as np
import torch

if TYPE_CHECKING:
import napari


def add_transfer_function_to_viewer(
viewer, # napari viewer
viewer: napari.Viewer,
transfer_function: torch.Tensor,
zyx_scale: tuple[float, float, float],
layer_name: str = "Transfer Function",
Expand Down

0 comments on commit 9cdc21d

Please sign in to comment.