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
_getTrimsByCycleand_getTrimsByBeamprocessfunctions directly addingtimestampas keyword argurment, in addition tostartandend. - The following segment could be refactored and distributed in
_getTrimsByCycle,_getTrimsByBeamprocesswithout changing their signatures (startandendas kwargs), then having different functions with dedicated inputtimestampas 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