Skip to content

Commit 0f10039

Browse files
committed
Update generation and sync with latest instruments
1 parent 366ac2e commit 0f10039

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

codegen/lco/generator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
import sys
55
from pathlib import Path
66

7+
import textcase
78
from jinja2 import Environment, FileSystemLoader
8-
from textcase import case, convert
99

1010

1111
def get_modes(ins: dict, type: str) -> list[str]:
@@ -42,7 +42,7 @@ def generate_instrument_configs(ins_s: str) -> str:
4242
instruments.append(
4343
{
4444
"instrument_type": instrument_type,
45-
"class_name": "Lco" + convert(instrument_type, case.PASCAL),
45+
"class_name": f"Lco{textcase.pascal(instrument_type)}",
4646
"config_types": [
4747
c["code"] for c in ins["configuration_types"].values()
4848
],

src/aeonlib/ocs/lco/instruments.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ class LcoBlancoNewfirmConfig(BaseModel):
305305
"""The number of exposures to take. This field must be set to a value greater than 0"""
306306
exposure_time: NonNegativeInt
307307
""" Exposure time in seconds"""
308-
mode: Literal["fowler1_coadds1", "fowler8_coadds1", "fowler16_coadds1"]
308+
mode: Literal["fowler1", "fowler8", "fowler16", "fowler2", "fowler4"]
309309
rois: list[Roi] | None = None
310310
extra_params: dict[Any, Any] = {}
311311
optical_elements: LcoBlancoNewfirmOpticalElements

0 commit comments

Comments
 (0)