MAsonryShake-Table CLI
Project description
EESD - MAST
MAST (MAsonry Shake-Table) is a comprehensive database and collaborative resource for advancing seismic assessment of unreinforced masonry buildings.
The associated public website is https://masonrydb.epfl.ch/.
Visit EESD lab at EPFL.
This tool is a command-line interface to the MAST database API, for data upload, extraction and analysis.
Usage:
mastdb --help
Buildings Database
The buildings folder contains the data for provisionning the MAST web application, using the mastdb
command line interface.
.
├── <Building ID>_XXXX
│ ├── model
│ │ ├── OpenSees
│ │ │ └── <...>
│ │ ├── geometry.vtk
│ │ ├── scheme.png
│ │ ├── License.md
│ │ └── README.md
│ ├── plan
│ │ ├── <some name>.png
│ │ ├── License.md
│ │ └── README.md
│ └── test
│ ├── Crack maps
│ │ ├── <run ID>.png
│ │ └── <...>.png
│ ├── Global force-displacement curve
│ │ ├── <run ID>.txt
│ │ └── <...>.txt
│ ├── Shake-table accelerations
│ │ ├── <run ID>.txt
│ │ └── <...>.txt
│ ├── Top displacement histories
│ │ ├── <run ID>.txt
│ │ └── <...>.txt
│ ├── License.md
│ └── README.md
├── Readme.md
└── Shake_Table_Tests_Database_XXXXX.xlsx
Excel database
Building experiments, references and run results
The .xlsx file from which the building experiments (experiment description, reference and run results) are to be uploaded is to be explicitly specified.
Command to update the database of building experiments, reference and run results:
mastdb upload --key xxxxxxx 00_MAST_Database/Shake_Table_Tests_Database_XXXXX.xlsx
Building numerical models
The .xlsx file from which the building numerical models are to be uploaded is to be explicitly specified, and MUST happen after the building experiments have been uploaded (see above).
Command to update the database of building experiments, reference and run results:
mastdb upload-models --key xxxxxxx 00_MAST_Database/Modeling\ assumptions.xlsx
Building data folders
Provide one data folder per building. The naming conventions are:
- Building folder name starts with Building's ID (leading zeros are ok). The subsequent part of the name (after _) is ignored.
- In each folder, the data files are organized as follows:
model
, contains the numerical model filesgeometry.vtk
is the main 3D model, additional VTK files (with any name) can be provided.scheme.png
is the main model image that will appear in the Buildings page. Other png files for additional model views, can be provided (with any names).- Any folder, with like the OpenSees example can be provided.
- README.md, recommended and optional
- License.md, recommended and optional
plan
, contains the plan view files- Any png file name.
- README.md, recommended and optional
- License.md, recommended and optional
test
, contains the test filesCrack maps
, png files, named by the corresponding run IDGlobal force-displacement curve
, txt files, named by the corresponding run IDShake-table accelerations
, txt files, named by the corresponding run IDTop displacement histories
, txt files, named by the corresponding run ID- Any folder, with like can be provided.
- README.md, recommended and optional
- License.md, recommended and optional
Command to update all the database files:
mastdb upload-repo-bulk --key xxxxxxx 00_MAST_Database
Command to update a specific type of database files of a specific Building:
mastdb upload-repo --key xxxxxxx --type model 1 00_MAST_Database/001_Beyer_2015/model
Command to remove a specific type of database files of a specific Building:
mastdb rm-repo --key xxxxxxx --type model 1
In order to help with the setup and the validation of an experiment's local repository, use the commands:
mastdb generate-repo --help
To validate an existing experiment data files repository, use the command:
mastdb validate-repo --help
To download an experiment data files repository into a local folder, use the command:
mastdb download-repo --help
Development
Setup package dependencies
poetry install
Run command line
poetry run mastdb --help
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file mastdb-0.1.0.tar.gz
.
File metadata
- Download URL: mastdb-0.1.0.tar.gz
- Upload date:
- Size: 50.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.2 CPython/3.10.6 Linux/6.5.0-41-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f4f9fae7d796c4f60d9e6fc75bff17838dd4ddde0e8473276665d658b256f158 |
|
MD5 | 4c392ca4099f05ddf01dd96ec13b0c57 |
|
BLAKE2b-256 | 0255aa6430ff9a0443087efb5beed84abc8c86bc89228de893b99005378e9669 |
File details
Details for the file mastdb-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: mastdb-0.1.0-py3-none-any.whl
- Upload date:
- Size: 52.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.2 CPython/3.10.6 Linux/6.5.0-41-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 90d542c2b79c6baca4f459f75f6cfde095ccf59991fb270832447154387a2d24 |
|
MD5 | fd19f5bce2a1939d1d7707f61511cca8 |
|
BLAKE2b-256 | 2ce7154eae63a99049df91d7c8b11f04eb35a986e33aee36a1ce3134fa50a177 |