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

import jsogrammar

class RowIterator(jsogrammar.RowIterator):
	def makeRecord(self, obj):
		return {
						'age': obj.age,
			'alphafe': obj.alphaFe,
			'bondalbedo': obj.bondAlbedo,
			'colorvminusi': obj.colorVminusI,
			'eccentricity': obj.eccentricity,
			'feh': obj.feH,
			'flaginteracting': obj.flagInteracting,
			'geomalbedo': obj.geomAlbedo,
			'hasphotocentermotion': obj.hasPhotocenterMotion,
			'host': obj.host,
			'inclination': obj.inclination,
			'logg': obj.logg,
			'longitudeascendingnode': obj.longitudeAscendingNode,
			'mass': obj.mass,
			'mbol': obj.mbol,
			'meanabsolutev': obj.meanAbsoluteV,
			'nc': obj.nc,
			'nt': obj.nt,
			'orbitperiod': obj.orbitPeriod,
			'periastronargument': obj.periastronArgument,
			'periastrondate': obj.periastronDate,
			'phase': obj.phase,
			'population': obj.population,
			'renvrstar': obj.rEnvRStar,
			'radius': obj.radius,
			'semimajoraxis': obj.semimajorAxis,
			'teff': obj.teff,
			'variabilityamplitude': obj.variabilityAmplitude,
			'variabilityperiod': obj.variabilityPeriod,
			'variabilityphase': obj.variabilityPhase,
			'vsini': obj.vsini,
			'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,
			'spectraltype': obj.spectralType,
			'variabilitytype': obj.variabilityType,
			'sourceid': obj.sourceId,
			'sourceextendedid': obj.sourceExtendedId,
		}
