Skip to content

Commit

Permalink
Fixed array test logic.
Browse files Browse the repository at this point in the history
  • Loading branch information
arkottke committed Jan 18, 2018
1 parent 18844ae commit 2968dba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyrvt/motions.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,10 +226,11 @@ def calc_osc_accels(self, osc_freqs, osc_damping=0.05, trans_func=[]):
Peak pseudo-spectral acceleration of the oscillator
"""
if trans_func:
if len(trans_func):
tf = np.asarray(trans_func)
else:
tf = np.ones_like(self.freqs)

resp = np.array([
self.calc_peak(
tf * calc_sdof_tf(self.freqs, of, osc_damping),
Expand Down

0 comments on commit 2968dba

Please sign in to comment.