"""
See jsogrammar.py to understand this file
"""

import jsogrammar

class RowIterator(jsogrammar.RowIterator):
	def makeRecord(self, obj):
		return {
				'redshift': obj.redShift,
				'slope': obj.slope,
				'w': obj.w,
				'alpha': obj.astrometry.alpha,
				'delta': obj.astrometry.delta,
				'distance': obj.astrometry.distance,
				'mualpha': obj.astrometry.muAlpha,
				'mudelta': obj.astrometry.muDelta,
				'radialvelocity': obj.astrometry.radialVelocity,
				'ag': obj.photometry.Ag,
				'av': obj.photometry.Av,
				'rv': obj.photometry.Rv,
				'magg': obj.photometry.magG,
				'maggbp': obj.photometry.magGBp,
				'maggrp': obj.photometry.magGRp,
				'maggrvs': obj.photometry.magGRvs,
				'sourceid': obj.sourceId,
				'sourceextendedid': obj.sourceExtendedId,
			}


