INGV / pyml

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TeamDigitale-publiccode TeamDigitale-reuse

License

DockerHub DockerHub Image Size DockerHub Pulls

GitHub Static Badge GitHub 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

About

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Python 97.2%Language:Dockerfile 1.8%Language:Shell 1.0%