-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Data is not correctly uploaded in the database? #841
Comments
Some more inside: the script ( In an ideal world, if the point in the history is How could we check a |
For that specific night and that specific object though (2024/03/27) something fishy happened. The history says that the previous alert was valid, and that it happened on the same night: import pyspark.sql.functions as F
from fink_utils.spark.utils import check_status_last_prv_candidates
df = spark.read.format('parquet').load('archive/science/year=2024/month=03/day=27')
df = df.filter(df['objectId'] == 'ZTF24aahtdhb')
kinds = ['valid', 'upper', 'uppervalid']
for kind in kinds:
df = check_status_last_prv_candidates(df, status=kind)
df.select(kinds).show()
+-----+-----+----------+
|valid|upper|uppervalid|
+-----+-----+----------+
| true|false| false|
+-----+-----+----------+
df.select(F.element_at('prv_candidates.jd', -1)).show()
+---------------------------------+
|element_at(prv_candidates.jd, -1)|
+---------------------------------+
| 2460396.8996991|
+---------------------------------+ But looking at the raw data, no sign of it: df_raw = spark.read.format('parquet').load('archive/raw/year=2024/month=03/day=27')
df_raw = df_raw.filter(df_raw['objectId'] == 'ZTF24aahtdhb')
df_raw.count()
Out[35]: 1 I inspected streaming & database logs, but there is no sign of problems... |
And another generic problem: we check only the last measurement, and push data if it is |
Take https://fink-portal.org/ZTF24aahtdhb. The latest AVRO alert packet (20240416) gives
Note that here, noisy data and valid data have the same markers. The portal, at the same period, gives:
Possible scenarios:
The text was updated successfully, but these errors were encountered: