Open troyraen opened 1 year ago
Would something like tests/test_ztf_fastavro.py
be a good place?
This might set a broader trend of having survey-specific tests "tests/test
I believe this is the same issue raised in fastavro/fastavro#676. The issue is marked as resolved. I only skimmed the info, but seems like we should be able to use newer fastavro versions if we pass in the schema to the reader, which we don't currently do for ZTF (but do for elasticc because we have to, since those avro packets are schemaless).
Fastavro is pinned in at least one of the cloud function requirements files. Here is a test that demonstrates the need for the pin.
Wtih
fastavro==1.4.4
, this works. Withfastavro==1.7.3
, this fails withTypeError: float() argument must be a string or a number, not 'NoneType'
.This is very likely a ZTF-specific problem, due to the non-standard ordering of their Avro schema types (the same problem that causes us to do a "fix schema" step before storing the Avros in the bucket).
Originally posted by @troyraen in https://github.com/mwvgroup/Pitt-Google-Broker/issues/187#issuecomment-1517098084