Commit 445d4bd9 authored by Marius Kriegerowski's avatar Marius Kriegerowski
Browse files

add maintainer

parent 527ac864
Pipeline #35580 failed with stage
in 1 minute and 43 seconds
FROM python:3.9
LABEL maintainer=""
WORKDIR /usr/src/loss-calculator
RUN apt-get clean && apt-get -y update && apt-get install -y libgdal-dev
......@@ -3,4 +3,4 @@ t='data/taxonomy_mapping.csv'
python3 ../../losscalculator/ -f $f -m $m -g $g -e $e -t $t -o
losscalculator damage -f $f -m $m -g $g -e $e -t $t -w
......@@ -33,10 +33,11 @@ class ShakemapiService:
def request_shakemap_data(self, event_quakeml: str) -> GMField:
"""Retrieve shakemap data from shakemap webservice"""
print("requesting shakemap")
print("requesting shakemap at")
responses = {}
for imt in self._im_types:
shakemap_url = f"{SHAKEMAP_HOSTNAME}/shakemap?imt={imt}&gmpe={self.gmpe}"
print(f"url: {shakemap_url}")
r =, data=event_quakeml, headers={'Content-Type': 'application/text'})
responses[imt] = r.json()
Markdown is supported
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