Skip to content

Commit

Permalink
revert TYPE_CHECKING to strings
Browse files Browse the repository at this point in the history
  • Loading branch information
talonchandler committed Dec 21, 2024
1 parent c53893c commit 2db0adb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
7 changes: 2 additions & 5 deletions waveorder/models/inplane_oriented_thick_pol3d_vector.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,11 @@
import numpy as np

from torch import Tensor
from typing import Literal, TYPE_CHECKING
from typing import Literal
from torch.nn.functional import avg_pool3d, interpolate
from waveorder import optics, sampling, stokes, util
from waveorder.visuals.napari_visuals import add_transfer_function_to_viewer

if TYPE_CHECKING:
import napari


def generate_test_phantom(zyx_shape: tuple[int, int, int]) -> torch.Tensor:
# Simulate
Expand Down Expand Up @@ -298,7 +295,7 @@ def calculate_singular_system(sfZYX_transfer_function):


def visualize_transfer_function(
viewer: napari.Viewer,
viewer: "napari.Viewer",
sfZYX_transfer_function: torch.Tensor,
zyx_scale: tuple[float, float, float],
) -> None:
Expand Down
5 changes: 1 addition & 4 deletions waveorder/visuals/napari_visuals.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,9 @@
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 2db0adb

Please sign in to comment.