@@ -218,9 +218,11 @@ def _estimate_time(self) -> float:
218218 """
219219 self ._buildPhaseCycle ()
220220 acqs = self .averages .value * self .shots .value * self .pcyc_dets .shape [0 ]
221+
222+ reptime = np .mean (val_in_us (self .reptime ))
221223 if hasattr (self ,'evo_params' ):
222224 acqs *= np .prod ([np .prod (param .dim ) for param in self .evo_params ])
223- time = acqs * self . reptime . value * 1e-6
225+ time = acqs * reptime * 1e-6
224226
225227 self .time = Parameter (name = "time" , value = f"{ (time // 3600 ):.0f} :{ (time % 3600 ) // 60 :.0f} :{ (time % 60 ):.0f} " , unit = "HH:MM:SS" ,
226228 description = "Estimated sequence run time" )
@@ -428,6 +430,9 @@ def __str__(self):
428430 if type (param .value ) is str :
429431 seq_param_string += "{:<10} {:<12} {:<10} {:<30} \n " .format (
430432 param .name , param .value , unit , param .description )
433+ elif param .value is None :
434+ seq_param_string += "{:<10} {:<12} {:<10} {:<30} \n " .format (
435+ param .name , "None" , unit , param .description )
431436 else :
432437 seq_param_string += "{:<10} {:<12.5g} {:<10} {:<30} \n " .format (
433438 param .name , param .value , unit , param .description )
@@ -945,9 +950,9 @@ def __init__(self, *, B, freq, Bwidth, reptime, averages, shots, **kwargs) -> No
945950 shots = shots , ** kwargs )
946951 self .name = "FieldSweepSequence"
947952
948-
953+ dim = Bwidth // kwargs . get ( 'step' , 1 )
949954 self .B = Parameter (
950- "B" , value = B , start = - Bwidth / 2 , step = 1 , dim = Bwidth , unit = "Gauss" , description = "Field sweep width"
955+ "B" , value = B , start = - Bwidth / 2 , step = kwargs . get ( 'step' , 1 ) , dim = dim , unit = "Gauss" , description = "Field sweep width"
951956 )
952957
953958 self .evolution ([self .B ])
0 commit comments