@@ -2159,14 +2159,17 @@ def eos_json(self, eos):
21592159 """
21602160 jsondata = {}
21612161 supported_eos = {'W' : 'w' , 'EW' : 'we' , 'EWC' : 'wce' , 'EWA' : 'wae' ,
2162- 'EWAV' : 'wae' , 'EWT' : 'we' , 'EWTD' : 'we' }
2162+ 'EWAV' : 'wae' , 'EWT' : 'we' , 'EWTD' : 'we' ,
2163+ 'EWAX' : 'wae' , 'EWCX' : 'wce' }
21632164 primary_converters = {'W' : convert_primary_eos_1 ,
21642165 'EW' : convert_primary_eos_1 ,
21652166 'EWC' : convert_primary_eos_2_or_4 ,
21662167 'EWA' : convert_primary_eos_3 ,
21672168 'EWAV' : convert_primary_eos_2_or_4 ,
21682169 'EWT' : convert_primary_eos_1 ,
2169- 'EWTD' : convert_primary_eos_1
2170+ 'EWTD' : convert_primary_eos_1 ,
2171+ 'EWAX' : convert_primary_eos_2_or_4 ,
2172+ 'EWCX' : convert_primary_eos_2_or_4
21702173 }
21712174 aut2eosname = ''
21722175 primary_converter = None
@@ -2191,14 +2194,16 @@ def eos_json(self, eos):
21912194 primary_converter = primary_converters [aut2eosname ]
21922195 if aut2eosname == 'EWA' :
21932196 if self .parameter ['option' ][19 ] > 0 :
2194- raise Exception ('EOS3 with MOP(19) > 0 not supported.' )
2195- elif aut2eosname == 'EWAV' :
2197+ raise Exception ('EOS %s with MOP(19) > 0 not supported.' % \
2198+ aut2eosname )
2199+ elif aut2eosname in ['EWAV' , 'EWAX' ]:
21962200 if self .parameter ['option' ][19 ] == 1 :
2197- raise Exception ('EOS4 with MOP(19) = 1 not supported.' )
2201+ raise Exception ('EOS %s with MOP(19) = 1 not supported.' % \
2202+ aut2eosname )
21982203 elif self .parameter ['option' ][19 ] == 2 :
21992204 primary_converter = convert_primary_eos_3
22002205 else :
2201- raise Exception ('EOS not supported:' + aut2eosname )
2206+ raise Exception ('EOS %s not supported.' % aut2eosname )
22022207 else :
22032208 raise Exception ('EOS not detected.' )
22042209 if aut2eosname in ['EWT' , 'EWTD' ]:
0 commit comments