Commit f5d040a5 authored by Graeme Weatherill's avatar 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
...@@ -9,7 +9,7 @@ repos: ...@@ -9,7 +9,7 @@ repos:
- id: trailing-whitespace - id: trailing-whitespace
- repo: https://github.com/psf/black - repo: https://github.com/psf/black
rev: 20.8b1 rev: 22.3.0
hooks: hooks:
- id: black - id: black
args: [ --line-length=96 ] args: [ --line-length=96 ]
......
...@@ -11,7 +11,8 @@ setup( ...@@ -11,7 +11,8 @@ setup(
license="AGPLv3+", license="AGPLv3+",
extras_require={"tests": test_requirements}, extras_require={"tests": test_requirements},
install_requires=[ install_requires=[
"openquake.engine>=3.13.0", "click==8.1.0",
"openquake.engine==3.13.0",
"geopandas", "geopandas",
"pyyaml", "pyyaml",
"Rtree", "Rtree",
......
...@@ -158,6 +158,7 @@ class Regionalization(object): ...@@ -158,6 +158,7 @@ class Regionalization(object):
if earthquake not in self: if earthquake not in self:
return None, None return None, None
# Transform event long, lat into cartesian x, y and store as shapely Point object # 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) eqx, eqy = transformer_world_equidistant.transform(earthquake.lon, earthquake.lat)
eqxy = geometry.Point(eqx, eqy) eqxy = geometry.Point(eqx, eqy)
for idx in self.tree.intersection(eqxy.bounds): for idx in self.tree.intersection(eqxy.bounds):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment