ICSM / pgmuvi

Python gaussian processes for inference on multi-wavelength light curves
https://pgmuvi.readthedocs.io
GNU General Public License v3.0
12 stars 6 forks source link

[Feature Request] Method to check input data type #43

Open stefanwaterval opened 1 year ago

stefanwaterval commented 1 year ago

The classes in lightcurve.py require the input data to be of type torch.Tensor but there is no mechanism preventing anyone to submit different types of data.

I suggest to add a method that checks the type of input data and modifies it if necessary.

pscicluna commented 1 year ago

As we discussed, this is definitely an important thing to add! It should probably be added to the setter methods for any properties that need it.