Checks validity of a threedi-model
Project description
Threedi-modelchecker
Threedi-modelchecker is a tool to verify the correctness of a 3Di model. The goal is to provide a tool for model builders to quickly check if his/her model is correct and can run a 3Di simulation. It provides detailed information about any potential errors in the model.
Threedi-modelchecks works with both spatialite and postgis databases. However, the database should always have the latest 3Di migration: https://docs.3di.lizard.net/en/stable/d_before_you_begin.html#database-overview
Installation:
pip install threedi-modelchecker
Threedi-modelchecker is also integrated into the ThreediToolbox Qgis plugin: https://github.com/nens/ThreeDiToolbox
Development
A docker image has been created for easy development. It contains an postgis server with an empty 3Di database to allow for easy testing.
Build the image:
docker-compose build
Run the tests:
docker-compose run modelchecker pytest
Release
Make sure you have zestreleaser installed.
fullrelease
When you create a tag on git, Travis CI automatically creates a new release to pypi.
Changelog of threedi-modelchecker
0.6 (2019-07-18)
Added missing NotNullChecks to the config.py
0.5 (2019-07-12)
Retry release (release of 0.4 is missing changes).
0.4 (2019-07-12)
Update to readme.
No longer raise a MigrationTooHighError when the migration is larger than expected.
0.3 (2019-07-08)
Fixed TypeError with CrossSectionShapeCheck when width/height are None.
Updated some constraints on CrossSectionShapeCheck: - Heights of tabulated shape must be increasing. - Egg only requires a width, which must be greater than 0.
Added 0 to a valid value for ZoomCategories. Also renamed the ZoomCategories names to something clear names.
0.2 (2019-06-12)
Renamed some methods of ThreediModelChecker.
Added basic to the 3di model schema: checks if the model has the latest migration applied and raises an error if not.
Rewrote CrossSectionShape check to no longer use regex and added it to config.
0.1 (2019-06-04)
Initial project structure.
Added ORM for a threedi-model in sqlalchemy.
Added several types of checks.
Manually configured many checks.
Added check factories, which generate many checks based on the ORM.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file threedi-modelchecker-0.6.tar.gz.
File metadata
- Download URL: threedi-modelchecker-0.6.tar.gz
- Upload date:
- Size: 20.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.9.1 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/2.7.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
649e0d6364da11b92f9b692ec1b37fc26dbbb5fb401e2713c329eedc4182f136
|
|
| MD5 |
631dd0b16c3829da77908234ccf45c63
|
|
| BLAKE2b-256 |
5bfdb2f55194c9711f2d130bddf128e51adde721f5bff0f59e484ff04ff2f18d
|
File details
Details for the file threedi_modelchecker-0.6-py2-none-any.whl.
File metadata
- Download URL: threedi_modelchecker-0.6-py2-none-any.whl
- Upload date:
- Size: 24.3 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.9.1 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/2.7.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cf9ed6e3a48a1158d86a78b32143b43f13f2cb6540f00d48198c7f03695bdec6
|
|
| MD5 |
f7bb0cd1cff09c5e295e10d3da9243c8
|
|
| BLAKE2b-256 |
91a5e05ef9f050b620b3e588f31d4725ad1163f8f53e8647291710476763017f
|