Skip to content

Commit 06cfdf5

Browse files
committed
[panorama] adjusted max processing scale
1 parent d04b447 commit 06cfdf5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/instrumentman/panorama/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -249,17 +249,17 @@ def cli_measure(**kwargs: Any) -> None:
249249
option(
250250
"--scale",
251251
help="Panorama scale in [pixels/rad]",
252-
type=FloatRange(0, 5215, min_open=True)
252+
type=FloatRange(0, 5210, min_open=True)
253253
),
254254
option(
255255
"--width",
256256
help="Width of complete sphere panorama in [pixels]",
257-
type=IntRange(0, 32767, min_open=True)
257+
type=IntRange(0, 32735, min_open=True)
258258
),
259259
option(
260260
"--height",
261261
help="Height of complete sphere panorama in [pixels]",
262-
type=IntRange(0, 16383, min_open=True)
262+
type=IntRange(0, 16367, min_open=True)
263263
),
264264
constraint=mutually_exclusive
265265
)

src/instrumentman/panorama/process.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
from .metadata import read_metadata, PanoramaMetadata
4343

4444

45-
_MAX_SCALE = np.iinfo(np.int16).max // (2 * np.pi) - 1
45+
_MAX_SCALE = 5210 # np.iinfo(np.int16).max // (2 * np.pi)
4646

4747

4848
def rot_x(angle: float) -> np.typing.NDArray[np.float64]:

0 commit comments

Comments
 (0)