- Get multiple trims at the same time
- Should support setting part
- Should encapsulate retrieved data in a new dataclass
- Start and end dates should be given in the context
- Support enums
- Retrieve trim time as “SET” time for GETs
- This can be retrieved with trim headers
- Need to get enums
- Improve exception handling
TASK
FROM "."
SORT completed, priority DESC
## Simplifying LsaContext
```python
@dataclass(frozen=True)
class LsaContext:
context: str
comment: str = "default"
transient: bool = False
drive: bool = True
propagate_to_children: bool = True
lenient_drive: bool = False
Contexts for Lsa cycles and beam processes are implemented simply through inheritance
@dataclass
class LsaCycleContext(LsaContext):
cycle: str
@dataclass
class LsaBeamProcessContext(LsaContext):
beam_process: strwhich set the context attribute to cycle or beam_process, respectively.
Ideally
- Remove the
LsaContext, and refactor the flags to an LsaTrimFlags class. [priority:: lowest] [completion:: 2024-11-21] - Refactor Contexts and Endpoint to different files, expose only public API. [priority:: lowest] [completion:: 2024-11-21]
Retrieving multiple trims
2 features need to be implemented:
- Retrieve trim active at time , and return a
pyda.data.DiscreteFunction[priority:: lowest] - Retrieve trims active between and , and return a new datastructure that can be interfaced with [priority:: lowest]
The concept of an LsaContext (LsaCycleContext) needs to be rethinked, since trim time now needs to be included in the context. Perhaps a pyda.data.CompositeContext?
Also need to figure out where to