Skip to main content

A python package for STROOPWAFEL and GenAIS algorithms

Project description

STROOPWAFEL

Based on https://arxiv.org/abs/1905.00910

A short documentation of stroopwafel implementation can be found here -> https://docs.google.com/document/d/15To_ragEkT13gYitBoCdhq38Z97byrjGtS49Mq8cxG8

Installation

Make sure you have python3 installed in the system, if not it can be downloaded from https://www.python.org/downloads/.

To install this package simply run pip3 install stroopwafel. [ If you are installing on our slurm cluster helios, then python3 -m pip install --user stroopwafel should work if you dont have pip3 ]

This package has the following dependencies. They should be automatically installed for you when you install this package.

  • numpy
  • scipy

To test if its installed, go to python3. On the terminal: python3. Inside the python prompt, import stroopwafel should not throw any errors.

Running

Create a script similar to interface_genais.py in the test directory. Make sure you have the external application executable (such as COMPAS) defined in this script. Provide the other details and functions and run it using python filename.py.

Note that stroopwafel is independent of the external application and does not have to reside in the same directory.

Additionally you can pass in optional arguments in the command line:
optional arguments:
-h, --help show this help message and exit
--num_systems NUM_SYSTEMS Total number of systems
--num_cores NUM_CORES Number of cores to run in parallel
--num_per_core NUM_PER_CORE Number of systems to generate in one core
--debug DEBUG If debug of COMPAS is to be printed
--mc_only MC_ONLY If run in MC simulation mode only
--run_on_helios RUN_ON_HELIOS If we are running on helios (or other slurm) nodes
--output_filename OUTPUT_FILENAME Output filename

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

stroopwafel-1.1.0-py2.py3-none-any.whl (39.8 kB view details)

Uploaded Python 2Python 3

File details

Details for the file stroopwafel-1.1.0-py2.py3-none-any.whl.

File metadata

  • Download URL: stroopwafel-1.1.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 39.8 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.8

File hashes

Hashes for stroopwafel-1.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ca31d7f4d8b607d9e513cc2e01e5d1eca24a74842308af853a5678f0098f2c0b
MD5 141e8fa70a2c36e6a1b3856153048fb7
BLAKE2b-256 b49cec928d23d5df63cd68ab55118da00485fb69adcb5ab9d20cc3ea68513192

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