Closed spflueger closed 3 years ago
@spflueger Maybe transfer this issue to the expertsystem repo?
yeah good point
Add Magnitude and Phase as individual Parameters instead of defining a Type inside Parameter. This will remove some overhead and the code will still be flexible enough. So the content of Magnitude and Phase will just follow Parameter.
Is that the case now since 0.1.2a0? Or do you mean something else?
Refer to object directly instead of
Class
tags
The syntax from CoherentIntensity:
on is invalid YAML syntax. That's why we need a Class
tag.
Refer to object directly instead of
Class
tagsThe syntax from
CoherentIntensity:
on is invalid YAML syntax. That's why we need aClass
tag.
How so?
Add Magnitude and Phase as individual Parameters instead of defining a Type inside Parameter. This will remove some overhead and the code will still be flexible enough. So the content of Magnitude and Phase will just follow Parameter.
Is that the case now since 0.1.2a0? Or do you mean something else?
Yeah this part is already solved. We could remove the Parameters
tag inside Amplitudes, so instead of writing
Parameters:
Magnitude: Magnitude_J/psi_to_f2(1270)_2+gamma_1;f2(1270)_to_pi0_0+pi0_0;
Phase: Phase_J/psi_to_f2(1270)_2+gamma_1;f2(1270)_to_pi0_0+pi0_0;
we could just write
Magnitude: Magnitude_J/psi_to_f2(1270)_2+gamma_1;f2(1270)_to_pi0_0+pi0_0;
Phase: Phase_J/psi_to_f2(1270)_2+gamma_1;f2(1270)_to_pi0_0+pi0_0;
- CoherentIntensity:
Component: coherent_J/psi_-1_to_gamma_-1+pi0_0+pi0_0
Amplitudes:
Either requires indentation before Component:
and Amplitudes:
or Class: CoherentIntensity
.
- CoherentIntensity:
Component: coherent_J/psi_-1_to_gamma_-1+pi0_0+pi0_0
Amplitudes:
Like this right? But that's what I meant
That's right. Yeah I guess then this format would be possible.
I believe recursion will not even be necessary, since the nesting is not arbitrary and too deep. With the use of oneOf
and specifiying properties
one should be able to solve this.
See https://stackoverflow.com/questions/24023536/how-do-i-require-one-field-or-another-or-one-of-two-others-but-not-all-of-them for more info
DecayProducts
Class
tags[Estimated effort: 2h]