File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -201,19 +201,17 @@ def read_runinfo(site,root):
201
201
# runid of fieldnote
202
202
runid = field .attrib ['run' ]
203
203
site .runinfo [runid ] = {}
204
- # index of runid in the runlist. This index is used to update the length of E-dipole
205
- ind = site .runlist .index (runid )
204
+
206
205
try :
207
206
site .NIMSid = get_text ( field .find ('Instrument' ), 'Id' )
208
207
except KeyError :
209
208
site .NIMSid = None
210
209
211
210
# run through E component
212
211
for ecomp in field .findall ("Dipole" ):
213
- # component
214
- Edirection = ecomp .attrib ['name' ]
215
- length = convert_float (get_text (ecomp , "Length" ))
216
- site .runinfo [runid ][Edirection ] = length
212
+ # component
213
+ Edirection = ecomp .attrib ['name' ] # Ex or Ey
214
+ site .runinfo [runid ][Edirection ] = convert_float (get_text (ecomp , "Length" ))
217
215
218
216
# set start and end datetime
219
217
site .runinfo [runid ]['Start' ] = datetime .datetime .strptime ( field .find ('Start' ).text ,'%Y-%m-%dT%H:%M:%S' )
You can’t perform that action at this time.
0 commit comments