From f93880bc10a4caf5e4022d4869a91eadbf81cdd9 Mon Sep 17 00:00:00 2001 From: JamesXD <49453187+jimxia7@users.noreply.github.com> Date: Mon, 6 Apr 2026 09:48:39 -0500 Subject: [PATCH 1/2] Update motion.py to be compatible with PyRVT --- src/pystrata/motion.py | 30 +++++++++++++++++------------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/src/pystrata/motion.py b/src/pystrata/motion.py index ff01d3d..121589f 100644 --- a/src/pystrata/motion.py +++ b/src/pystrata/motion.py @@ -400,22 +400,26 @@ class SourceTheoryRvtMotion(pyrvt.motions.SourceTheoryMotion, Motion): def __init__( self, - magnitude, - distance, - region, - stress_drop=None, - depth=8, - peak_calculator=None, - calc_kwds=None, + magnitude: float, + distance: float, + region: str | None = None, + depth: float | None = 8, + peak_calculator: str | pyrvt.peak_calculators.Calculator | None = None, + calc_kwds: dict | None = None, + freqs: np.ndarray | None = None, + disable_site_amp: bool = False, + **kwargs ): Motion.__init__(self) pyrvt.motions.SourceTheoryMotion.__init__( self, - magnitude, - distance, - region, - stress_drop, - depth, + magnitude=magnitude, + distance=distance, + region=region, + depth=depth, peak_calculator=peak_calculator, calc_kwds=calc_kwds, - ) + freqs=freqs, + disable_site_amp=disable_site_amp, + **kwargs + ) \ No newline at end of file From 84680d0b27a370112015e206572fb2998da4c934 Mon Sep 17 00:00:00 2001 From: JamesXD <49453187+jimxia7@users.noreply.github.com> Date: Mon, 6 Apr 2026 09:49:03 -0500 Subject: [PATCH 2/2] Add .DS_Store to .gitignore --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index 25de5be..8d70079 100644 --- a/.gitignore +++ b/.gitignore @@ -188,3 +188,5 @@ tags references/ working/ scratch.* + +.DS_Store