Closed sstendahl closed 1 year ago
Just to check, if there is no iSLD, this behaves as it did before? I think it does but wanted to check
I just double-checked, if you create a refnx sample without specifiying the iSLD, it sets it equal to zero on init. Same with refl1d samples and irho. So short answer, yes. It will just copy the zero value from the iSLD in refnx to the irho value in refl1d sample.
In the old case, it would assign zero upon init. So the end-result is the same in the case of an unassigned iSLD.
perfect, resolve the conflicts and merge :)
Closes issue #68.
Adds the imaginary part of the SLD to the
to_refnx
andto_refl1d
functions, such that this component is properly transferred over as well. For the refnx syntax, see the docs: https://refnx.readthedocs.io/en/latest/refnx.reflect.html#refnx.reflect.SLDWhere the parameters have to be added as argument as a Parameter type:
In this particular case, refl1d syntax is actually pretty straightforward. These changes in this method have been tested with the unit tests in PR #69.