Skip to content

Commit

Permalink
Explicily force catalogdb.sdss_dr16_qso.psfmag into peewee ArrayField.
Browse files Browse the repository at this point in the history
Add two postgres profiles to ease psql communication via ssh tunnel.
  • Loading branch information
tdwelly committed Jul 21, 2020
1 parent b4df9c1 commit 2996e22
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
14 changes: 14 additions & 0 deletions python/sdssdb/etc/sdssdb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,17 @@ slore:
host: lore.sdss.utah.edu
port: 5432
domain: lore.sdss.utah.edu

tunnel_operations:
user: sdss_user
admin: sdss
host: localhost
port: 7502
domain: operations.sdss.*

tunnel_operations_sdss:
user: sdss
admin: sdss
host: localhost
port: 7502
domain: operations.sdss.*
3 changes: 3 additions & 0 deletions python/sdssdb/peewee/sdss5db/catalogdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
DeferredThroughModel, DoubleField, FloatField,
ForeignKeyField, IntegerField, ManyToManyField, TextField)

from playhouse.postgres_ext import ArrayField

from sdssdb.exceptions import SdssdbUserWarning

from .. import BaseModel
Expand Down Expand Up @@ -243,6 +245,7 @@ class SDSS_DR16_QSO(SDSS_DR14_QSO):
class Meta:
table_name = 'sdss_dr16_qso'

psfmag = ArrayField(field_class=FloatField, null=True)

class unWISE(CatalogdbModel):

Expand Down

0 comments on commit 2996e22

Please sign in to comment.