nikhil-sarin / redback

A Bayesian inference software package for end-to-end fitting and interpretation of electromagnetic transients
GNU General Public License v3.0
43 stars 23 forks source link

Redshifts from Swift with comments break when creating redback.afterglow.SGRB.from_swift_grb #210

Closed AntoniaR closed 4 months ago

AntoniaR commented 4 months ago

When I download some GRBs from Swift, they have text in the redshift field. For example GRB 080905A gives ValueError: could not convert string to float: '0.1218(emissionfromhost)'

This is the code I am running:

GRB = '080905A'
data = redback.get_data.get_bat_xrt_afterglow_data_from_swift(grb=GRB, data_mode="flux")
model = 'evolving_magnetar'
afterglow = redback.afterglow.SGRB.from_swift_grb(name=GRB, data_mode='flux',truncate=True, truncate_method="prompt_time_error")
nikhil-sarin commented 4 months ago

Should be fixed with in #212, please try again after updating.