guynir42 / AstroRetriever

A package used for downloading and processing images from various astronomical surveys
Other
4 stars 2 forks source link

Properties mixin class #31

Closed guynir42 closed 1 year ago

guynir42 commented 1 year ago

We should add a "Properties" class that is appended to each source, and can be used to store analysis results.

The way this is made extensible is (a) There is a PropertiesMixin class with some generics (not sure if there would be anything here since all the specific properties are just going to be columns defined for each subclass). (b) There is an example Properties subclass with some stats for the single-epoch flare search. (c) The relationship to the Source is added in the properties.py file, so the source doesn't need to be changed when new properties kinds are added to the code.