https://github.com/alan-turing-institute/fabmogp_paper

Software needed to reproduce UQ earthquake simulations

https://github.com/alan-turing-institute/fabmogp_paper

Science Score: 10.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
    1 of 3 committers (33.3%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (14.8%) to scientific vocabulary

Keywords

earthquake-simulation hut23 hut23-231 hut23-232 uncertainty-quantification

Keywords from Contributors

gaussian-processes interactive projection archival sequences genomics observability autograding hacking shellcodes
Last synced: 5 months ago · JSON representation

Repository

Software needed to reproduce UQ earthquake simulations

Basic Info
  • Host: GitHub
  • Owner: alan-turing-institute
  • License: mit
  • Language: TeX
  • Default Branch: master
  • Homepage:
  • Size: 370 KB
Statistics
  • Stars: 0
  • Watchers: 3
  • Forks: 0
  • Open Issues: 4
  • Releases: 6
Topics
earthquake-simulation hut23 hut23-231 hut23-232 uncertainty-quantification
Created over 5 years ago · Last pushed about 3 years ago
Metadata Files
Readme License

README.md

FabMOGP Conference Paper

This repository contains files needed to reproduce the earthquake tutorial simulations in the conference proceedings on the VECMA workshop at the Alan Turing Institute on 24 January 2020. The paper manuscript and the necessary LaTex files are also included.

Requirements

This paper uses several software libraries to carry out the described computations:

  • fdfault, which simulates dynamic earthquake rupture
  • mogp_emulator, an Uncertainty Quantification toolkit
  • fabsim3, a simulation management tool to support simulation reproducibility
  • fabmogp, a fabsim3 plugin for managing the simulations in this paper

All of these tools are freely available under open source software licenses.

All dependencies required to reproduce this paper are included in the provided Dockerfile and the corresponding Makefile includes all build instructions. You will need to install Docker and Make to build the docker image to run the simulations and create the PDF of the manuscript. The results of the computations that were submitted for publication have also been hashed, and a tool is pre-installed in the docker image that allows the user to easily compare the results of re-running the computations with those that were previously obtained.

NOTE: I have only tested this on MacOS, though I believe it should also work on Linux with no changes. If you are running Windows, you may need to alter some of the pre-packaged commands in the Makefile to work on your system.

Building the Docker Image

From the docker directory, you should be able to build the docker container with the command

bash make fabmogp_build

You will need to have Make and Docker installed, and Docker must be running. This will build the image of the computational environment needed to produce the simulations (you will need an internet connection to download all of the packages).

Running the Simulations and Typesetting the Manuscript

Once the build completes, you can start the container by running the command

bash make fabmogp_docker

This will create a directory output in the current directory, and mount that directory in the docker image to retrieve any outputs. Once the container is running, it will give you a bash shell. Once in the container, you will see the command prompt below

bash [fabmogp] /home/root/fabmogp/fabmopg_paper/manuscript $

To run all simulations, create all figures and outputs, and typeset the manuscript, simply enter make at this prompt. On a 4 core Mac Book, this may take up to 20 minutes. All outputs (figures and the manuscript) will be created in this directory.

To remove any outputs from the container, you can copy to the shared mounted directory (which has been defined as an environment variable in the container for convenience). For instance, to save the paper to your hard drive, type

bash cp fabmogp_paper.pdf $OUTPUT

This will cause the paper to show up in the docker/output directory on your machine.

Comparing with the Hashed Results

Once all the simulations have been run, you can easily compare your results with those obtained when the paper was submitted. This uses the repro-catalogue tool, which hashes all of the outputs from the simulations so that they can be compared later. To do this, from the same prompt in the container, type make compare. The hashing tool will print out the files that match and those that do not match -- note that there will be some instances where the files do not match, which is mainly because the FabSim3 tool saves log files and YAML files containing environment variables from the simulation runs, both of which include timestamps and thus will not match across repeated simulations. As long as none of the files ending in .dat, .npy, .load, or .surf show up in the section where the files did not agree, then the computational results are identical and have been successfully reproduced.

Owner

  • Name: The Alan Turing Institute
  • Login: alan-turing-institute
  • Kind: organization
  • Email: info@turing.ac.uk

The UK's national institute for data science and artificial intelligence.

GitHub Events

Total
Last Year

Committers

Last synced: about 2 years ago

All Time
  • Total Commits: 139
  • Total Committers: 3
  • Avg Commits per committer: 46.333
  • Development Distribution Score (DDS): 0.022
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
edaub e****b@t****k 136
Eric Daub 4****b 2
dependabot[bot] 4****] 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 12 months ago

All Time
  • Total issues: 19
  • Total pull requests: 27
  • Average time to close issues: 1 day
  • Average time to close pull requests: 25 days
  • Total issue authors: 1
  • Total pull request authors: 2
  • Average comments per issue: 0.05
  • Average comments per pull request: 0.15
  • Merged pull requests: 19
  • Bot issues: 0
  • Bot pull requests: 9
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • edaub (19)
Pull Request Authors
  • edaub (18)
  • dependabot[bot] (9)
Top Labels
Issue Labels
Pull Request Labels
dependencies (9)

Dependencies

requirements.txt pypi
  • Fabric3 ==1.14.post1
  • GitPython ==3.1.12
  • Pillow ==8.1.1
  • PyNaCl ==1.4.0
  • PyYAML ==5.4.1
  • attrs ==20.3.0
  • bcrypt ==3.2.0
  • cffi ==1.14.4
  • cryptography ==3.3.2
  • cycler ==0.10.0
  • gitdb ==4.0.5
  • importlib-metadata ==3.4.0
  • iniconfig ==1.1.1
  • kiwisolver ==1.3.1
  • matplotlib ==3.3.4
  • mogp-emulator ==0.4.0
  • numpy ==1.19.5
  • packaging ==20.9
  • paramiko ==2.7.2
  • pluggy ==0.13.1
  • py ==1.10.0
  • pycparser ==2.20
  • pyparsing ==2.4.7
  • pytest ==6.2.2
  • python-dateutil ==2.8.1
  • repro-catalogue ==1.0.0
  • scipy ==1.5.4
  • six ==1.15.0
  • smmap ==3.0.5
  • toml ==0.10.2
  • typing-extensions ==3.7.4.3
  • zipp ==3.4.0
docker/Dockerfile docker
  • ubuntu 18.04 build