def _add_properties(self, **kwargs):
for k,v in kwargs.items():<EOL><INDENT>if k=='<STR_LIT>':<EOL><INDENT>self.obs.add_parallax(v)<EOL><DEDENT>elif k in ['<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>']:<EOL><INDENT>par = {k:v}<EOL>self.obs.add_spectroscopy(**par)<EOL><DEDENT>elif re.search('<STR_LIT:_>', k):<EOL><INDENT>m = re.search('<STR_LIT>', k)<EOL>prop = m.group(<NUM_LIT:1>)<EOL>tag = m.group(<NUM_LIT:2>)<EOL>self.obs.add_spectroscopy(**{prop:v, '<STR_LIT:label>':'<STR_LIT>'.format(tag)})<EOL><DEDENT><DEDENT>
Adds non-photometry properties to ObservationTree