Propagate target info from the runcard
Created by: Radonirinaunimi
The following propagates the information on the target(s) from the run card into the data specs. The information are passed as a stringified dictionary into the target_info
key:
- { dataset: NMCPD, frac: 0.5, target_info: '{"A": [1, 2], "Z": [1, 2]}'}
These changes will be reverted in the future when the target info are added as metadata in the pineappl grids/FK tables in which they will be part of validphys.coredata.FKTableData
.
@scarlehoff After some thoughts, for the time being, I have left it the way I did it before, ie adding the info as an attribute of validphys.n3fit_data_utils.FittableDataSet
instead of validphys.coredata.FKTableData
. Adding it into the later will require more changes in various places inc. fkparser
and pineparser
. Does this make sense?