Hide keyboard shortcuts

Hot-keys on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

''' 

Data model class definitions 

''' 

 

from builtins import zip 

from builtins import object 

class CelestialObject(object): 

 

""" A class used to dynamically generate attributes  

and load data from any db table / catalog  

""" 

 

def __init__(self, keys, values): 

for (key, value) in zip(keys, values): 

self.__dict__[key] = value 

 

class DataMetadata(object): 

 

""" A class used for storing metadata """ 

 

def __init__(self, value=None, ucd=None, unit=None): 

self.value = value 

self.ucd = ucd 

self.unit = unit