paranoya / population-synthesis-toolkit

Spetral synthesis, photometry, SED fitting, etc.
BSD 3-Clause "New" or "Revised" License
3 stars 1 forks source link

Remove array casting #37

Closed PabloCorcho closed 1 month ago

PabloCorcho commented 1 month ago

@paranoya np.array(quantity) removes the units and creates a new array of dtype=float (the default). Then, the default unit is always assigned after the check. In any case, an astropy.Quantity is a subclass of np.ndarrray, so there should not be problems when passing a single value...