-
Notifications
You must be signed in to change notification settings - Fork 4
bjoined
[source]
Object for appending bdata objects. Attribute access works through lists (see examples below). Histogram counts are summed over to emulate data taken within a single run. bdata asymmetry calculations operate on these summed histograms. Additional functionality for proper weighted means of asymmetries of the individual runs is also given.
Signature:
bjoined(bdata_list)
Examples:
blist = [bdata(r, year=2019) for r in range(40010, 40013)] # read runs 40010-40012
bjnd = bjoined(blist) # combine these runs
Functions:
In addition to the bdata functions, bjoined
also provides:
Signature | Description |
---|---|
asym_mean(*asym_args,**asym_kwargs) |
Take weighted mean of individual asymmetries. Arguments are passed to bdata.asym()
|
Attribute access passes through list objects. For example, if we have created the bjnd
object from the previous example, we run bjnd.camp
we get a list of mdict
objects. We can access the magnetic field strength as bjnd.camp.b_field
, or a list of the mean values bjnd.camp.b_field.mean
despite the fact that at each stage a list is returned. Attribute lookup is treated the same as in bdata so that the above could be shortened to bjnd.b_field.mean
, with some small penalty to run time.