fixing import problems

This commit is contained in:
2016-05-03 15:09:51 +02:00
parent 41991c5d81
commit fd27a43110
2 changed files with 14 additions and 6 deletions

View File

@@ -479,12 +479,12 @@ def select_for_phase(st, phase):
from pylot.core.util.defaults import COMPNAME_MAP
sel_st = Stream()
if phase.upper() is 'P':
if phase.upper() == 'P':
comp = 'Z'
alter_comp = COMPNAME_MAP[comp]
sel_st += st.select(component=comp)
sel_st += st.select(component=alter_comp)
elif phase.upper() is 'S':
elif phase.upper() == 'S':
comps = 'NE'
for comp in comps:
alter_comp = COMPNAME_MAP[comp]