Skip to content

Commit

Permalink
Remove all time fields
Browse files Browse the repository at this point in the history
  • Loading branch information
bsmartradio committed Jan 4, 2024
1 parent 9b83941 commit 2350efa
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 45 deletions.
20 changes: 0 additions & 20 deletions python/lsst/alert/packet/schema/6/0/lsst.v6_0.diaForcedSource.avsc
Original file line number Diff line number Diff line change
Expand Up @@ -76,26 +76,6 @@
"null",
"string"
]
},
{
"doc": "Time when this record was generated.",
"name": "time_processed",
"type": {
"logicalType": "timestamp-micros",
"type": "long"
}
},
{
"doc": "Time when this record was marked invalid.",
"default": null,
"name": "time_withdrawn",
"type": [
"null",
{
"logicalType": "timestamp-micros",
"type": "long"
}
]
}
]
}
20 changes: 0 additions & 20 deletions python/lsst/alert/packet/schema/6/0/lsst.v6_0.diaSource.avsc
Original file line number Diff line number Diff line change
Expand Up @@ -906,26 +906,6 @@
"null",
"string"
]
},
{
"doc": "Time when the image was processed and this DiaSource record was generated.",
"name": "time_processed",
"type": {
"logicalType": "timestamp-micros",
"type": "long"
}
},
{
"doc": "Time when this record was marked invalid.",
"default": null,
"name": "time_withdrawn",
"type": [
"null",
{
"logicalType": "timestamp-micros",
"type": "long"
}
]
}
]
}
10 changes: 6 additions & 4 deletions python/lsst/alert/packet/schema/6/0/sample_data/fakeAlert.avro

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion python/lsst/alert/packet/updateSchema.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def populate_fields(apdb_table):
excluded_fields = ['validityStart', 'validityEnd', 'Periodic', 'max', 'min',
'Science', 'Percentile', 'Max', 'Min', 'science', 'LowzGal',
'MAD', 'Skew', 'Intercept', 'Slope', 'Stetson', 'lastNonForcedSource',
'nDiaSources', 'ExtObj', 'isDipole', 'bboxSize', 'ssObjectReassocTime']
'nDiaSources', 'ExtObj', 'isDipole', 'bboxSize', 'Time', 'time_']
exclude = False
for excluded_field in excluded_fields:
if excluded_field in column['name']:
Expand Down

0 comments on commit 2350efa

Please sign in to comment.