Skip to main content

Scoring functions for Reinvent

Project description

Introduction

This package contains the scoring functions for REINVENT.

Installation

To install in REINVENT's environment either install from repo or use pip install reinvent-scoring for the latest official release.

Developing

Setup environment

You can use Conda to create an environment with all the necessary packages installed.

$ conda env create -f reinvent_scoring
[...]
$ conda activate reinvent_scoring

Run tests

The tests use the unittest package testing framework. Before you can run the tests make sure that you have created a config.jsonfile in the reinvent_scoring/configs directory. There is an example config in the same directory, which you can base your own config off of. Make sure that you set MAIN_TEST_PATH to a non-existent directory; it is where temporary files will be written during the tests; if it is set to an existing directory, that directory will be removed once the tests have finished.

Some tests require a proprietary OpenEye license; you have to set up a few things to make the tests read your license. The simple way is to just set the OE_LICENSE environment variable to the path of the file containing the license. If you just want to set the license in the reinvent_scoring Conda environment, it is a bit more complicated, but you only have to do it once.

(reinvent-scoring) $ cd $CONDA_PREFIX
$ mkdir -p etc/conda/activate.d
$ mkdir -p etc/conda/deactivate.d

Put the following in etc/conda/activate.d/env_vars.sh.

#!/bin/sh
export OE_LICENSE='</path/to/your/oe_license/file>'

And put the following in etc/conda/deactivate.d/env_vars.sh.

#!/bin/sh
unset OE_LICENSE

Once you have created the files, deactivate and re-activate the environment, and echo $OE_LICENSE should output the path to the license file.

Once you have created a config file and configured your environment, you can run the tests, located in the unittest_reinvent directory, by running

$ python main_test.py

Building

  • Building: python setup.py sdist bdist_wheel
  • Upload build to test: python -m twine upload --repository testpypi dist/*
  • Upload build: python -m twine upload dist/*

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

reinvent_scoring-0.0.66.tar.gz (3.9 MB view details)

Uploaded Source

Built Distribution

reinvent_scoring-0.0.66-py3-none-any.whl (3.9 MB view details)

Uploaded Python 3

File details

Details for the file reinvent_scoring-0.0.66.tar.gz.

File metadata

  • Download URL: reinvent_scoring-0.0.66.tar.gz
  • Upload date:
  • Size: 3.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.26.0 setuptools/46.1.1.post20200322 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.7

File hashes

Hashes for reinvent_scoring-0.0.66.tar.gz
Algorithm Hash digest
SHA256 e1bac0310f940353f3bb3865f508eabda0e0323e19a8861c5a4a8ffdcac4d231
MD5 641a07bbfc5c61d03877dc8d0b4d8f4d
BLAKE2b-256 89b2de552d52af309f32c73d2f3947ea8f25bc49debcb0a147a17df8d1f332a7

See more details on using hashes here.

File details

Details for the file reinvent_scoring-0.0.66-py3-none-any.whl.

File metadata

  • Download URL: reinvent_scoring-0.0.66-py3-none-any.whl
  • Upload date:
  • Size: 3.9 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.26.0 setuptools/46.1.1.post20200322 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.7

File hashes

Hashes for reinvent_scoring-0.0.66-py3-none-any.whl
Algorithm Hash digest
SHA256 d2cb9e226b4e6b6b3cf5ef72af81b3bf592599b9b5f7684dd8e073873e131bf9
MD5 81411725ec65b4e6f2240e2f187aab29
BLAKE2b-256 63b3ce8352bfadc55189196681bcfb72ab139185a9d88cb2e6de32eacb076225

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