Skip to content

Commit

Permalink
remove unnecessary print
Browse files Browse the repository at this point in the history
  • Loading branch information
Naoto committed Apr 5, 2019
1 parent dfd932c commit 8ce2d57
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions bezpy/mt/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,19 +201,17 @@ def read_runinfo(site,root):
# runid of fieldnote
runid = field.attrib['run']
site.runinfo[runid] = {}
# index of runid in the runlist. This index is used to update the length of E-dipole
ind = site.runlist.index(runid)

try:
site.NIMSid = get_text( field.find('Instrument'), 'Id')
except KeyError:
site.NIMSid = None

# run through E component
for ecomp in field.findall("Dipole"):
# component
Edirection = ecomp.attrib['name']
length = convert_float(get_text(ecomp, "Length"))
site.runinfo[runid][Edirection] = length
# component
Edirection = ecomp.attrib['name'] # Ex or Ey
site.runinfo[runid][Edirection] = convert_float(get_text(ecomp, "Length"))

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

0 comments on commit 8ce2d57

Please sign in to comment.