Skip to content
GitLab
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
f5d040a5
Commit
f5d040a5
authored
May 05, 2022
by
Graeme Weatherill
Browse files
Bumps black to 22.3.0, fixes OQ to 3.13.0
parent
4ef63a7f
Pipeline
#42491
failed with stage
in 15 minutes and 18 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.pre-commit-config.yaml
View file @
f5d040a5
...
...
@@ -9,7 +9,7 @@ repos:
-
id
:
trailing-whitespace
-
repo
:
https://github.com/psf/black
rev
:
2
0.8b1
rev
:
2
2.3.0
hooks
:
-
id
:
black
args
:
[
--line-length=96
]
...
...
setup.py
View file @
f5d040a5
...
...
@@ -11,7 +11,8 @@ setup(
license
=
"AGPLv3+"
,
extras_require
=
{
"tests"
:
test_requirements
},
install_requires
=
[
"openquake.engine>=3.13.0"
,
"click==8.1.0"
,
"openquake.engine==3.13.0"
,
"geopandas"
,
"pyyaml"
,
"Rtree"
,
...
...
shakyground2/regionalization.py
View file @
f5d040a5
...
...
@@ -158,6 +158,7 @@ class Regionalization(object):
if
earthquake
not
in
self
:
return
None
,
None
# Transform event long, lat into cartesian x, y and store as shapely Point object
# pylint: disable=unpacking-non-sequence
eqx
,
eqy
=
transformer_world_equidistant
.
transform
(
earthquake
.
lon
,
earthquake
.
lat
)
eqxy
=
geometry
.
Point
(
eqx
,
eqy
)
for
idx
in
self
.
tree
.
intersection
(
eqxy
.
bounds
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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