ingv/pyml

By ingv

Updated 6 months ago

Python code to calculate ML with different methods and attenuation functions.

Image
0

717

TeamDigitale-publiccodeTeamDigitale-reuse

License

DockerHubDockerHub Image SizeDockerHub Pulls

GitHub Static BadgeGitHub Issues

Dynamic YAML Badge

pyml Version | GitHub Actions Workflow Status

Introduction

Python code, complementary to pyamp, to calculate ML with different methods and attenuation functions using pyamp_amplitude output file or database table.

Quickstart

Docker image

First, clone the git repository

git clone https://github.com/INGV/pyml.git
cd pyml
docker build --tag ingv/pyml .

in case of errors, try:

docker build --no-cache --pull --tag ingv/pyml .
Run docker

To run the container, use the command below; the -v option is used to "mount" working directory into container:

docker run --rm -v $(pwd)/examples/input:/opt/data ingv/pyml --in_file_name /opt/data/eventid_28745631.json --in_file_format json --out_format json

Contribute

Thanks to your contributions!

Here is a list of users who already contributed to this repository:

Authors

(c) 2024 Raffaele Distefano raffaele.distefano[at]ingv.it
(c) 2024 Valentino Lauciani valentino.lauciani[at]ingv.it

Istituto Nazionale di Geofisica e Vulcanologia, Italia

Docker Pull Command

docker pull ingv/pyml