Do not allow an empty instance of DiffractionObject
- init requires xarray
, yarray
, xtype
#227
Milestone
DiffractionObject
- init requires xarray
, yarray
, xtype
#227
Problem
Continuing our discussion from #224 - We do not want User to have an empty
DiffractionObject
instance.Proposed solution
In our
init
method, we could modfyfrom:
to:
Here, User needs to provide
xarray
,yarray
,xtype
andwavelength
. Here,xtype
andwavelneght
are required for theself._set_xarrays(xarray, xtype)
method withininput_data
where we utilizeself.wavelength
andself.xtype
as shown below:@sbillinge I have a draft PR here: #228 for this implementation.
The text was updated successfully, but these errors were encountered: