Low Level Numpy conversion
As of now, we need to convert numpy arrays to python lists before they can be inserted. The Lightcurve Models already do so automatically when being assigned data. But for anyone that manually performs insertions using SQLAlchemy's Core API will receive a NoneType
error on the psycopg2.cursor
object. These manual interactions will be rare for the regular user, but bulk methods do rely on them.
For now we need to keep this in mind but I plan on doing the following:
Find a way to have psycopg2
identify numpy array instances and either:
- Convert the numpy array to a list using
nparr.tolist()
- Providing a custom serializer to perform the convertion of a numpy array to a SQL statement in one go
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information