Skip to main content

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 ecosizer-engine

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

    from ecosizer_engine_package 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 numpydocs

  2. navigate to docs directory and run:

    $ make html

Contact Information

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

Metadata

Release files for ecosizer-engine 1.0.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ecosizer-engine 1.0.8
File Size Uploaded
ecosizer-engine-1.0.8.tar.gz 33.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ecosizer-engine 1.0.8
File Interpreter ABI Platform
ecosizer_engine-1.0.8-py3-none-any.whl Python 3 none any Details

Total release size: 76.5 kB

Release files / ecosizer-engine-1.0.8.tar.gz

Download URL ecosizer-engine-1.0.8.tar.gz
Size 33.5 kB
Tags Source
SHA-256 checksum
How to use checksums
7bcc8859e473f13e4b8e0bd59f8a2009cd43172565129daa77ec83e389c1fe20
BLAKE2b-256 checksum
How to use checksums
f5edf3861a08d9bc9026d7e9d66eb61de7fcc18bdca19c0af4dd538ca9dbe46c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

Release files / ecosizer_engine-1.0.8-py3-none-any.whl

Download URL ecosizer_engine-1.0.8-py3-none-any.whl
Size 43.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
54c876793a36813fa7e2727a4bc5668a28f07a6fcee7a0fbb63555baaeb4de1c
BLAKE2b-256 checksum
How to use checksums
be944f8d2a4c61dc95563fa3847d01bdcd0e11aaca39fa33d5d17664e47c72c1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

Release history Release notifications | RSS feed

This release

1.0.8 This release

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page