Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
cliffckerr committed May 24, 2019
2 parents 442032f + 38fd985 commit 7e53686
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion sciris/sc_math.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ def smooth(data, repeats=None):
kernel = np.array([0.25,0.5,0.25])
for r in range(repeats):
if output.ndim == 1:
np.convolve(data, kernel, mode='same')
output = np.convolve(output, kernel, mode='same')
elif output.ndim == 2:
for i in range(output.shape[0]): output[i,:] = np.convolve(output[i,:], kernel, mode='same')
for j in range(output.shape[1]): output[:,j] = np.convolve(output[:,j], kernel, mode='same')
Expand Down
7 changes: 5 additions & 2 deletions sciris/sc_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1002,8 +1002,11 @@ def fixedpause(delay=None, verbose=True):
try: start = _delaytime
except: start = time.time()
elapsed = time.time() - start
if elapsed<delay:
pl.pause(delay-elapsed)
remaining = delay-elapsed
if remaining>0:
if verbose:
print('Pausing for %0.1f s' % remaining)
time.sleep(remaining)
else:
if verbose:
print('Warning, delay less than elapsed time (%0.1f vs. %0.1f)' % (delay, elapsed))
Expand Down
4 changes: 2 additions & 2 deletions sciris/sc_version.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
__all__ = ['__version__', '__versiondate__', '__license__']

__version__ = '0.13.7'
__versiondate__ = '2019-05-01'
__version__ = '0.13.8'
__versiondate__ = '2019-05-09'
__license__ = 'Sciris %s (%s) -- (c) Sciris.org' % (__version__, __versiondate__)

0 comments on commit 7e53686

Please sign in to comment.