Skip to content
Snippets Groups Projects
Commit cb0f0f9b authored by arigdon-usgs's avatar arigdon-usgs
Browse files

Fixed more linting errors with spacing and syntax

parent b719be10
No related branches found
No related tags found
No related merge requests found
...@@ -246,7 +246,7 @@ class Controller(object): ...@@ -246,7 +246,7 @@ class Controller(object):
starttime=output_gap[0], starttime=output_gap[0],
endtime=output_gap[1], endtime=output_gap[1],
stream=input_timeseries, stream=input_timeseries,
channels = algorithm.get_required_channels() or \ channels=algorithm.get_required_channels() or
input_channels): input_channels):
continue continue
# check for fillable gap at start # check for fillable gap at start
......
...@@ -35,8 +35,7 @@ def get_geo_from_mag(mag): ...@@ -35,8 +35,7 @@ def get_geo_from_mag(mag):
(geo_x, geo_y) = ChannelConverter.get_geo_from_mag(mag_h, mag_d) (geo_x, geo_y) = ChannelConverter.get_geo_from_mag(mag_h, mag_d)
return obspy.core.Stream(( return obspy.core.Stream((
__get_trace('X', h.stats, geo_x), __get_trace('X', h.stats, geo_x),
__get_trace('Y', d.stats, geo_y), __get_trace('Y', d.stats, geo_y))) + z + f
)) + z + f
def get_geo_from_obs(obs): def get_geo_from_obs(obs):
...@@ -123,8 +122,7 @@ def get_mag_from_geo(geo): ...@@ -123,8 +122,7 @@ def get_mag_from_geo(geo):
(mag_h, mag_d) = ChannelConverter.get_mag_from_geo(geo_x, geo_y) (mag_h, mag_d) = ChannelConverter.get_mag_from_geo(geo_x, geo_y)
return obspy.core.Stream(( return obspy.core.Stream((
__get_trace('H', x.stats, mag_h), __get_trace('H', x.stats, mag_h),
__get_trace('D', y.stats, mag_d), __get_trace('D', y.stats, mag_d))) + z + f
)) + z + f
def get_mag_from_obs(obs): def get_mag_from_obs(obs):
...@@ -151,8 +149,7 @@ def get_mag_from_obs(obs): ...@@ -151,8 +149,7 @@ def get_mag_from_obs(obs):
(mag_h, mag_d) = ChannelConverter.get_mag_from_obs(obs_h, obs_e, d0) (mag_h, mag_d) = ChannelConverter.get_mag_from_obs(obs_h, obs_e, d0)
return obspy.core.Stream(( return obspy.core.Stream((
__get_trace('H', h.stats, mag_h), __get_trace('H', h.stats, mag_h),
__get_trace('D', e.stats, mag_d), __get_trace('D', e.stats, mag_d))) + z + f
)) + z + f
def get_obs_from_geo(geo, include_d=False): def get_obs_from_geo(geo, include_d=False):
...@@ -200,8 +197,7 @@ def get_obs_from_mag(mag, include_d=False): ...@@ -200,8 +197,7 @@ def get_obs_from_mag(mag, include_d=False):
traces = ( traces = (
__get_trace('H', h.stats, obs_h), __get_trace('H', h.stats, obs_h),
__get_trace('E', d.stats, obs_e), __get_trace('E', d.stats, obs_e))
)
if include_d: if include_d:
obs_d = ChannelConverter.get_obs_d_from_obs(obs_h, obs_e) obs_d = ChannelConverter.get_obs_d_from_obs(obs_h, obs_e)
traces = traces + (__get_trace('D', d.stats, obs_d),) traces = traces + (__get_trace('D', d.stats, obs_d),)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment