Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8ce2d57

Browse files
author
Naoto
committed
remove unnecessary print
1 parent dfd932c commit 8ce2d57

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

bezpy/mt/io.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -201,19 +201,17 @@ def read_runinfo(site,root):
201201
# runid of fieldnote
202202
runid = field.attrib['run']
203203
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+
206205
try:
207206
site.NIMSid = get_text( field.find('Instrument'), 'Id')
208207
except KeyError:
209208
site.NIMSid = None
210209

211210
# run through E component
212211
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"))
217215

218216
# set start and end datetime
219217
site.runinfo[runid]['Start'] = datetime.datetime.strptime( field.find('Start').text,'%Y-%m-%dT%H:%M:%S')

0 commit comments

Comments
 (0)