DiaObjectManual

class snappl.diaobject.DiaObjectManual(*args, **kwargs)[source]

Bases: DiaObject

A manually-specified object that’s not saved anywhere.

Only call this constructor if you’re making a brand new object.

If you want to get an existing object, call either DiaObject.get_object or DiaObject.find_objects.

Properties

idUUID or str, default None.

The id of the diaobject. If you leave this as None (recommended), a new one will be assigned.

provenance_idUUID or str

The provenance of the object. Required if you’re going to save this to the database later.

rafloat

Decimal degrees.

decfloat

Decimal degrees.

namestr, defanot None

A name for the object. These aren’t strictly required to be unique, but you should strive to make them unique. Normally, saving them will raise an error if you end up with more than one object in the same provenance with the same name. Ideally, this is something digestable for humans, but if you’re lazy, you can make this a string version of id and then you can be sure it will be unique. You may also just leave it at Hone.

iaunamestr, default None

The IAU / TNS name for the object. If given, this must be unique within a given provenance, though it’s OK if it’s None.

mjd_discoveryfloat

MJD when the object was found. Required.

mjd_peakfloat, default None

MJD when the object is at peak. Optional

mjd_startfloat, default None

MJD when the transient starts. This means that any images from an earlier MJD are suitable for use as a template. Optional.

mjd_endfloat, default None

MJD when the tranient “ends”. Physically, this is meaningless, but practically, it means that any images from a later MJD are suitable for use as a template. Optional.

ndetectedint, default 1

The number of times this object has been detected. When creating a new DiaObject, you usually want this to be 1 (the default) unless you really know what you’re doing. When a DiaObject has been loaded from the database, this will have the number in the corresponding database column.

propertiesdict, default {}

Any optional properties you want to save with the object.