Skip to content

Commit e275df7

Browse files
committed
fix type annotation bug in last change
1 parent 16f9f14 commit e275df7

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

packages/cheese3d/cheese3d/synchronize/core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import numpy as np
44
import matplotlib.pyplot as plt
55
from dataclasses import dataclass
6-
from typing import List, Tuple, Dict, Any, Literal
6+
from typing import List, Tuple, Dict, Any
77
from pathlib import Path
88

99
from cheese3d.synchronize.aligners import (BaseAligner,
@@ -19,7 +19,7 @@
1919
class SyncConfig:
2020
pipeline: List[str]
2121
led_threshold: float = 0.9
22-
led_peak_algorithm: Literal["dynamic", "max"] = "dynamic"
22+
led_peak_algorithm: str = "dynamic"
2323
max_regression_rmse: float = 1e-2
2424
ref_view: str = "bottomcenter"
2525
ref_crop: str = "default"

packages/cheese3d/cheese3d/synchronize/readers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import matplotlib.patches as patches
77
from dataclasses import dataclass, field
88
from pathlib import Path
9-
from typing import Optional, Dict, Any, Literal
9+
from typing import Optional, Dict, Any
1010
from tqdm import tqdm
1111
from open_ephys.analysis import Session as OESession
1212

@@ -50,7 +50,7 @@ class VideoSyncReader(SyncSignalReader):
5050
- `crop`: Tuple of (left, right, top, bottom) coordinates for cropping.
5151
"""
5252
crop: BoundingBox = field(default_factory=lambda: [None, None, None, None])
53-
peak_algorithm: Literal["dynamic", "max"] = "dynamic"
53+
peak_algorithm: str = "dynamic"
5454

5555
def load_signal(self):
5656
print(self.source)

0 commit comments

Comments
 (0)