Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
Pipeline #42491 failed
......@@ -9,7 +9,7 @@ repos:
- id: trailing-whitespace
- repo: https://github.com/psf/black
rev: 20.8b1
rev: 22.3.0
hooks:
- id: black
args: [ --line-length=96 ]
......
......@@ -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",
......
......@@ -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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment