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
Shakemap
shakyground2
Commits
cb86d932
Commit
cb86d932
authored
Feb 19, 2021
by
Marius Kriegerowski
Browse files
add missing dependencies and switch CI base container
parent
79874ee7
Pipeline
#20101
failed with stage
in 5 minutes and 49 seconds
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
cb86d932
image
:
python:3-buster
image
:
debian:buster-slim
variables
:
PIP_CACHE_DIR
:
"
$CI_PROJECT_DIR/.cache/pip"
cache
:
paths
:
-
.cache/pip
-
venv/
before_script
:
-
python3 -V
-
apt-get update
-
apt-get install -y python3 git python3-pip
-
pip3 install virtualenv
-
virtualenv venv
-
source venv/bin/activate
-
pip3 install .
-
pip3 install pytest-cov
-
pip3 install .[tests]
-
pip3 install .
formatting
:
script
:
...
...
setup.py
View file @
cb86d932
...
...
@@ -10,7 +10,10 @@ setup(
description
=
""
,
license
=
"AGPLv3+"
,
extras_require
=
{
"tests"
:
test_requirements
},
install_requires
=
[],
install_requires
=
[
"openquake.engine"
,
"geopandas"
,
],
packages
=
find_packages
(),
python_requires
=
">=3.7"
,
)
shakyground2/site_model.py
View file @
cb86d932
...
...
@@ -24,7 +24,7 @@ SITE_PROPERTIES = {
"backarc"
:
np
.
bool
,
# Site is in the subduction backarc (True) or else
"region"
:
np
.
int32
,
# Region to which the site belongs
"geology"
:
(
np
.
string_
,
20
)
# Geological classification for the site
}
}
# In some cases reasonable default values can be used for relevant ground motion models
...
...
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