pylint suggested changes
This commit is contained in:
parent
fd76a509ea
commit
693f6a68db
@ -47,8 +47,8 @@ def spatial_markov_trend(subquery, time_cols, num_time_per_bin,
|
||||
|
||||
try:
|
||||
query_result = plpy.execute(query)
|
||||
except:
|
||||
plpy.notice('** Query failed: %s' % query)
|
||||
except plpy.SPIError, err:
|
||||
plpy.notice('** Query failed with exception %s: %s' % (err, query))
|
||||
plpy.error('Spatial Markov failed: check the input parameters')
|
||||
return zip([None], [None], [None], [None], [None])
|
||||
|
||||
@ -75,20 +75,13 @@ def spatial_markov_trend(subquery, time_cols, num_time_per_bin,
|
||||
prob_dist = get_prob_dist(sp_markov_result.P, lag_classes, sp_markov_result.classes[:, -1])
|
||||
|
||||
## find the ups and down and overall distribution of each cell
|
||||
trend_up, trend_down, trend, volatility = get_prob_stats(prob_dist, sp_markov_result.classes[:, -1])
|
||||
trend_up, trend_down, trend, volatility = get_prob_stats(prob_dist,
|
||||
sp_markov_result.classes[:, -1])
|
||||
|
||||
## output the results
|
||||
|
||||
return zip(trend, trend_up, trend_down, volatility, weights.id_order)
|
||||
|
||||
def spatial_markov_predict(subquery, time_cols, num_time_per_bin,
|
||||
permutations, geom_col, id_col, w_type, num_ngbrs):
|
||||
"""
|
||||
Filler for this future function
|
||||
"""
|
||||
|
||||
return None
|
||||
|
||||
def get_time_data(markov_data, time_cols):
|
||||
"""
|
||||
Extract the time columns and bin appropriately
|
||||
|
Loading…
Reference in New Issue
Block a user