Skip to main content

Easy write excel inputs in Vensim

Project description

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.7+
  • PySD 1.4+

Resources

See the project documentation for information about:

Some jupyter notebook examples are available in the examples folder of the GitLab repository.

Authority and acknowledgmentes

This library was originally developed for H2020 LOCOMOTION project by @eneko.martin.martinez 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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

excels2vensim-0.9.3.tar.gz (17.4 kB view details)

Uploaded Source

Built Distribution

excels2vensim-0.9.3-py3-none-any.whl (19.2 kB view details)

Uploaded Python 3

File details

Details for the file excels2vensim-0.9.3.tar.gz.

File metadata

  • Download URL: excels2vensim-0.9.3.tar.gz
  • Upload date:
  • Size: 17.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.7.3

File hashes

Hashes for excels2vensim-0.9.3.tar.gz
Algorithm Hash digest
SHA256 3398252a4afb514b384b0025d7e01fdd9e534d9d344b669af6bd13c76063e5b1
MD5 459cb93efa7640109c542f71005d2114
BLAKE2b-256 e766ff2c84fb3c0fe91f1556849ad43eb5e31dcc9f04915e315aec1fe3f7ce01

See more details on using hashes here.

File details

Details for the file excels2vensim-0.9.3-py3-none-any.whl.

File metadata

  • Download URL: excels2vensim-0.9.3-py3-none-any.whl
  • Upload date:
  • Size: 19.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.7.3

File hashes

Hashes for excels2vensim-0.9.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a08afa5f0ffa67d857232603178d5f06d95e32bc6d6a0fa04084326941c7dd29
MD5 ddc6ace86209fd0f6668bf8d105c4969
BLAKE2b-256 3f4a178568ff0bc18af2795b254d47b54e9da9ca6c72dccf5fd7a15b823a56d0

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page