dlanci
dlanci
> > such as a dict for a complex number > > 😱 Where? > @DavidMStraub, I might be wrong, but everytime a Wilson Coefficient dictionary is instantiated, in the...
If I run ```python flavio.measurements.read_file('/path/to/flavio/data/measurements_test.yml') ``` It outputs a list with the name of the observable as only item ```python ['observable'] ```
Ok, but then how can I edit/update the measured Likelihood for the relevant observable with the values I want to assign? i.e. how can I edit the dictionary and dump...
Thanks. So what I now do is: ```python #get the measurement to edit with open('/path/to/flavio/data/measurements_test.yml') as file: test = yaml.load(file, Loader=yaml.FullLoader) #edit the likelihood y test2=copy.deepcopy(test) test2['observable']['values'][0]['value']['y']=np.exp(logL) #create a measurement...
It's ok and actually with a simple edit I could make it work. For now I just dump the modified measurement with yaml and edited this line https://github.com/flav-io/flavio/blob/master/flavio/measurements.py#L14 to: ```python...