Skip to content

Commit

Permalink
Minor update
Browse files Browse the repository at this point in the history
Signed-off-by: Theodore Chang <[email protected]>
  • Loading branch information
TLCFEM committed Dec 14, 2024
1 parent a26aa9b commit e984d6c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/mb/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,18 @@ def plot_spectrum(self, fig: Figure | None = None):

return fig

def plot_response_spectrum(self):
def plot_response_spectrum(
self,
damping_ratio: float = 0.05,
period_bracket: np.ndarray = np.arange(0, 10, 0.01),
):
if None in (
self.period,
self.displacement_spectrum,
self.velocity_spectrum,
self.acceleration_spectrum,
):
self.to_response_spectrum(0.05, np.arange(0, 10, 0.01))
self.to_response_spectrum(damping_ratio, period_bracket)

fig = plt.figure()
fig.add_subplot(311)
Expand Down

0 comments on commit e984d6c

Please sign in to comment.