Skip to main content

A software for sizing Heat Pump Water Heaters for buildings

Project description

EcosizerEngine

Requirements:

This software requires a python version greater than or equal to 3.11 to be installed in the environment it is running in.

Using the package in scripts:

  1. Install the package with pip

    $ pip install ecoengine

  2. To import and use the tools in this package, add the following import statement to your script:

    from ecoengine import *

You should now be able to use the features of EcosizerEngine in your script

Running locally in a container:

First, clone the EcosizerEngine repo from github

$ git clone https://github.com/EcotopeResearch/EcosizerEngine.git

Depending on what type of environment you want to run the code in, please follow the appropriate steps.

Steps for installing in a virtual environment:

  1. Navigate to the EcosizerEngine directory. This should be the same directory level as src/, setup.py, and this README document.

  2. Run the following command:

    $ pip install -e .

This will install the ecosizer-engine package locally in editable format, such that changes you make in the source code here will be reflected in implementation. This pip install should also install all dependencies for ecosizer-engine (i.e. numpy, scipy, pytest, and plotly)

Steps for installing using docker container:

  1. Navigate to the EcosizerEngine directory.

  2. Build container with docker file

    $ docker build -t ecosizerengine:latest .

  3. Run docker container

    $ docker run -it ecosizerengine bash

  4. When you are done messing about in the docker image, just type the command

    $ exit

or press ctrl+c then ctrl+d

Steps for installing conda environment from the Anaconda prompt:

  1. Navigate to the EcosizerEngine directory.

  2. Create new environment from .yml file.

    $ conda env create --file EcosizerEngine.yml

If the environment creation doesn't work, make sure Anaconda is up-to-date with

$ conda update --all

If that doesn't work, you may need to force Anaconda to download and use python 3.11 (it defaults to 3.9) by making another environment

$ conda create -n py311 python=3.11
$ conda activate py311
$ conda env create --file EcosizerEngine.yml
  1. Check that the environment was created

    $ conda env list

  2. Activate the new environment

    $ conda activate EcosizerEngine

If an environment already exits it can be removed with:

$ conda remove --name EcosizerEngine --all

All the available environment can be found with:

$ conda env list

Testing:

From the parent directory, type

$ python -m pytest

This will run all unit tests for the package

Updating Documentation:

  1. If not installed in environment: pip install sphinx and numpydoc

  2. navigate to docs directory and run:

    $ make html

Updating version on pypi

  1. If you haven't installed them before, pip install build and twine

    $ python -m pip install --upgrade build

    $ python -m pip install --user --upgrade twine

  2. Update the version number in setup.cfg

  3. Run the following commands from the project root directory:

    $ python -m build

    $ python -m twine upload dist/*

Contact Information

To get in touch with Ecotope Inc. go here: http://ecotope.com/contact/

Project details


Release history Release notifications | RSS feed

This version

1.7.8

Download files

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

Source Distribution

ecoengine-1.7.8.tar.gz (6.1 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ecoengine-1.7.8-py3-none-any.whl (6.4 MB view details)

Uploaded Python 3

File details

Details for the file ecoengine-1.7.8.tar.gz.

File metadata

  • Download URL: ecoengine-1.7.8.tar.gz
  • Upload date:
  • Size: 6.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.21

File hashes

Hashes for ecoengine-1.7.8.tar.gz
Algorithm Hash digest
SHA256 1c2282be954b8cb98b18328e710d7fc699fe8af5e0d0a4ea0b33a9e3b7e0a513
MD5 346e47cd12ffe3608ea2153b0763e54d
BLAKE2b-256 6b8912d96618069dc9fba21fd8b4700da5380fc1e8b72f26ca8595f313891adc

See more details on using hashes here.

File details

Details for the file ecoengine-1.7.8-py3-none-any.whl.

File metadata

  • Download URL: ecoengine-1.7.8-py3-none-any.whl
  • Upload date:
  • Size: 6.4 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.21

File hashes

Hashes for ecoengine-1.7.8-py3-none-any.whl
Algorithm Hash digest
SHA256 e630f2213d831e72de236bb55f33e366327cb2ca7b710f4419f0f0cf0c2cb02f
MD5 bf551e4578009843f26664bbb879f10f
BLAKE2b-256 f95efbd4a0802e7181ac9919f6d6a077e3a8ca32556205eb8e3bb10b3bd85896

See more details on using hashes here.

Supported by

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