Adding getLastTrimAtTimestamp function
The getLastTrimAtTimestamp
function is following the same methods as _getTrimsByCycle
, except that it uses the ContextSettingsRequestBuilder
at specific timestamp to get the trim at that stage in time rather than getting all trim headers.
Two possibilities for proper inclusion:
- The feature could possibly be included in the
_getTrimsByCycle
and_getTrimsByBeamprocess
functions directly addingtimestamp
as keyword argurment, in addition tostart
andend
. - The following segment could be refactored and distributed in
_getTrimsByCycle
,_getTrimsByBeamprocess
without changing their signatures (start
andend
as kwargs), then having different functions with dedicated inputtimestamp
as kwarg.for pp in parameterList: ...
- The effective timestamp of the trim is obtained from
setting.getCreationDate()
rather thanth.getCreatedDate()
as trim headers are not obtained.
- The effective timestamp of the trim is obtained from
Merge request reports
Activity
Please register or sign in to reply