Skip to content

Commit

Permalink
fix(mosaic): drop Literal typing
Browse files Browse the repository at this point in the history
  • Loading branch information
loiccoyle committed Jun 24, 2024
1 parent 7eca6ba commit 41feff5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions phomo/mosaic.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import math
from functools import partial
from multiprocessing.pool import Pool as MpPool
from typing import Literal, Tuple, Union
from typing import Tuple, Union

import numpy as np
from PIL import Image
Expand Down Expand Up @@ -145,9 +145,7 @@ def d_matrix(
self._log.debug("d_matrix shape: %s", d_matrix.shape)
return d_matrix

def d_matrix_cuda(
self, metric: Literal["norm"] | Literal["greyscale"] = "norm"
) -> np.ndarray:
def d_matrix_cuda(self, metric: str = "norm") -> np.ndarray:
"""Compute the distance matrix using CUDA for GPU acceleration.
Args:
Expand Down

0 comments on commit 41feff5

Please sign in to comment.