spotriver - Sequential Parameter Optimization Interface to River
Project description
spotriver
Development
Styleguide
Follow the Google Python Style Guide from https://google.github.io/styleguide/pyguide.html.
Pre commit checks
Before you commit your code, please check that it is "clean".
To do so, first run black from the projects root directory:
$ black .
Next, check if flake8 shows any errors:
$ flake8
Fix any shown errors before you commit.
Installation
github
- Clone the github repository.
Python
-
Mac Users: Install brew
brew install pythonandbrew install graphvizetc.
-
Generate and activate a virtual environment, see venv, e.g.,
cd ~; python3 -m venv .venvsource ~/.venv/bin/activate
Python mkdocs
python -m pip install mkdocs mkdocs-gen-files mkdocs-literate-nav mkdocs-section-index mkdocs-materialmkdocs buildmkdocs servehttp://127.0.0.1:8000/
Optimizing/Profiling Code
https://scipy-lectures.org/advanced/optimizing/index.html
Editor/IDE
- Optional: Install visualstudio
- Optional: Install quarto
Package Installation
Configuration Files
- This information is based on https://packaging.python.org/en/latest/tutorials/packaging-projects/
- Information is stored in
pyproject.toml(setup.pyis not used anymore.) - A
srcfolder is used for the package sources. - The following files are used for the package building:
pyproject.toml: see pyproject.toml.- Important: Follow the instructions from https://setuptools.pypa.io/en/latest/userguide/pyproject_config.html for including data files (like *.csv, *.tar, etc.). These files can be specified in the following
MANIFESTfile:MANIFEST: see MANIFEST. It describes the data files to be included, e.g.:include src/spotriver/data/*.rst
LICENSE: see LICENSE
Installation
- Perform the following steps to install the package:
- Make sure you have the latest version of PyPA’s build installed:
python3 -m pip install --upgrade build
- Start the package building process via:
python3 -m build - This command should output a lot of text and once completed should generate two files in the
distdirectory. - You can use the local
spotriver*.tar.gzfile from thedistfolder for your package installation withpip, e.g.; python3 -m pip install ./dist/spotriver-*.tar.gz
- Make sure you have the latest version of PyPA’s build installed:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file spotriver-0.4.4.tar.gz.
File metadata
- Download URL: spotriver-0.4.4.tar.gz
- Upload date:
- Size: 477.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6c15dafede481f8cc8b81e7ac71ea8aa5fdcb647cfc82b690b00d1d37b189c82
|
|
| MD5 |
dfcbcaaec6435535d4d160d9fcd06d9b
|
|
| BLAKE2b-256 |
5986a6609bdba39eb7a9df256146901c4530128ac16b02fb29c9a76f4e3b2203
|
File details
Details for the file spotriver-0.4.4-py3-none-any.whl.
File metadata
- Download URL: spotriver-0.4.4-py3-none-any.whl
- Upload date:
- Size: 483.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d28bf7a875151cb023642bbd8a05606a1655485a1b829a2b3fb02f97476c5481
|
|
| MD5 |
8414a4cb3f877a0cabe30f3bcc10612c
|
|
| BLAKE2b-256 |
38bac08caebdf08383fb766203dfdec75dd30b5598264a1468236c1f4247f9de
|