Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Graeme Weatherill
shakyground2
Commits
49327f52
Commit
49327f52
authored
Jun 15, 2021
by
g-weatherill
Browse files
Changes GMICE class docstring
parent
37e7b0e2
Pipeline
#24428
passed with stage
in 11 minutes and 52 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
shakyground2/gmice.py
View file @
49327f52
...
...
@@ -21,6 +21,14 @@ class GMICE(metaclass=abc.ABCMeta):
"""
Abstract base class for conversion equations between observed ground motion parameters and
macroseismic intensity
Attributes:
sctx: Site properties as instance of `class`:
openquake.hazardlib.gsim.base.SitesContext
rctx: Rupture properties as instance of `class`:
openquake.hazardlib.gsim.base.RuptureContext
dctx: Distances as instance of `class`:
openquake.hazardlib.gsim.base.DistancesContext
"""
@
property
...
...
@@ -49,13 +57,8 @@ class GMICE(metaclass=abc.ABCMeta):
def
__init__
(
self
,
sctx
,
rctx
,
dctx
):
"""
Args:
sctx: Site properties as instance of `class`:
openquake.hazardlib.gsim.base.SitesContext
rctx: Rupture properties as instance of `class`:
openquake.hazardlib.gsim.base.RuptureContext
dctx: Distances as instance of `class`:
openquake.hazardlib.gsim.base.DistancesContext
Constructs the class using the SitesContext, RuptureContext and DistancesContext
objects
"""
self
.
sctx
=
SitesContext
()
self
.
dctx
=
DistancesContext
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment