excels2vensim
Systems Dynamics models often use large amounts of input data. Reading this data is complicated when it corresponds to multidimensional matrices. In the case of Vensim, if the data is read from '.xlsx' files, the data can only be read in two-dimensional tables at most, which implies the introduction of multiple equations in the model file.
The excels2vensim library aims to simplify the incorporation of equations from external data into Vensim. Given the name of the variable and information on how its dimensions are distributed, the library returns the equations for copying and pasting into the Vensim model. In addition, the library uses cellrange names to write the equations, and automatically creates the cellranges in the '.xlsx' file.
The automation of this process can save a lot of time for the modeller, as well as reduce possible human error by avoiding entering a large number of equations by hand. The library is also flexible and works for any number of dimensions. In addition, it allows reading data of which one dimension is spread over different files or sheets.
This library is able to automate the generation of the following type of equations:
- GET XLS CONSTANTS
- GET DIRECT CONSTANTS
- GET XLS DATA (with or without keywords)
- GET DIRECT DATA (with or without keywords)
- GET XLS LOOKUPS
- GET DIRECT LOOKUPS
Requirements
- Python 3.9+
- PySD 3.12+
Resources
See the project documentation for information about:
Some jupyter notebook examples are available in the examples folder of the GitHub repository.
Authority and acknowledgmentes
This library was originally developed for H2020 LOCOMOTION project by @enekomartinmartinez at Centre de Recerca Ecològica i Aplicacions Forestals (CREAF).
This project has received funding from the European Union’s Horizon 2020 research and innovation programme under grant agreement No. 821105.
Metadata
Release files for excels2vensim 0.14.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| excels2vensim-0.14.0.tar.gz | 18.4 kB | Without provenance | Details for excels2vensim-0.14.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| excels2vensim-0.14.0-py3-none-any.whl | Python 3 | none | any | Details for excels2vensim-0.14.0-py3-none-any.whl |
Total release size: 37.7 kB
Release files / excels2vensim-0.14.0.tar.gz
| Download URL | excels2vensim-0.14.0.tar.gz |
|---|---|
| Size | 18.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b6bc368cff9f1b7c1a35f56f0a13416c85664d3bd8d00943ff99663482857103
|
|
BLAKE2b-256 checksum How to use checksums |
d09189fe40bf9dd78dc08b3a968d33355f82878b1ec5c73df0803b6a24581d1b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.18
|
Release files / excels2vensim-0.14.0-py3-none-any.whl
| Download URL | excels2vensim-0.14.0-py3-none-any.whl |
|---|---|
| Size | 19.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
89b4d1de13ff1445cfb2ce0ff784dc7bede867524c6263c8c060b7fc1bd5522d
|
|
BLAKE2b-256 checksum How to use checksums |
c1f80e21588dcd4ce67fdfb84407d6bec77284f17ef60408fa2bf3eaa02b5b2d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.18
|
Security for excels2vensim 0.14.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.