@@ -277,15 +277,15 @@ def from_response(cls, ccv: dict) -> "SingleConstant":
277
277
_have_calcat_metadata = True ,
278
278
)
279
279
280
- def full_path (self , caldb_root = None ):
280
+ def file_path (self , caldb_root = None ) -> Path :
281
281
if caldb_root is not None :
282
282
caldb_root = Path (caldb_root )
283
283
else :
284
284
caldb_root = _get_default_caldb_root ()
285
285
return caldb_root / self .path
286
286
287
287
def dataset_obj (self , caldb_root = None ) -> h5py .Dataset :
288
- calpath = self .full_path (caldb_root )
288
+ calpath = self .file_path (caldb_root )
289
289
f = h5py .File (calpath , "r" )
290
290
return f [self .dataset ]["data" ]
291
291
@@ -545,15 +545,14 @@ def to_float_or_string(value):
545
545
}
546
546
547
547
@classmethod
548
- def from_condition (
549
- cls ,
550
- condition : "ConditionsBase" ,
551
- detector_name ,
552
- calibrations = None ,
553
- client = None ,
554
- event_at = None ,
555
- pdu_snapshot_at = None ,
556
- begin_at_strategy = "closest" ,
548
+ def from_condition (cls ,
549
+ condition : "ConditionsBase" ,
550
+ detector_name ,
551
+ calibrations = None ,
552
+ client = None ,
553
+ event_at = None ,
554
+ pdu_snapshot_at = None ,
555
+ begin_at_strategy = "closest" ,
557
556
558
557
):
559
558
"""Look up constants for the given detector conditions & timestamp.
0 commit comments