Skip to main content

Factory and registry primitives for selecting BEM solvers and excitation operators.

Project description

mnpbem-base

PyPI version Python versions Publish mnpbem-base

mnpbem-base provides registry and factory primitives for selecting solver classes from option constraints. The release notes are generated directly from this scientific README for traceable package documentation.

Implemented Formulation

Given a requirement set for a candidate class, the selection score is:

$$ \hat{c}=\arg\max_c\sum_j\mathbf{1}[\text{need}_{c,j}\ \text{is satisfied}] $$

This mirrors rule-based class dispatch used in MNPBEM-style solver construction.

Implementation

  • Registry logic: src/mnpbem_base/registry.py
  • Factory entry points: src/mnpbem_base/factory.py

Dependencies

  • numpy>=1.24

Installation

pip install mnpbem-base

Example

Runnable example:

  • examples/basic_usage.py

Run:

python examples/basic_usage.py

Author

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

mnpbem_base-0.1.2.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

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

mnpbem_base-0.1.2-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file mnpbem_base-0.1.2.tar.gz.

File metadata

  • Download URL: mnpbem_base-0.1.2.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for mnpbem_base-0.1.2.tar.gz
Algorithm Hash digest
SHA256 2900ead124f2abe55645d0811834ece012eb1b7e1e6b9f78bdd4452d9b8265b6
MD5 7b483b3f1ad7a2ee5dfc4d870eeb6ff5
BLAKE2b-256 56d0d60df6db25dd0496a975e486e471c872e5a933dda9d6e58fd41c823d85b7

See more details on using hashes here.

File details

Details for the file mnpbem_base-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: mnpbem_base-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for mnpbem_base-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 94cba5927d1429fb0d4e9ca276769ec64385bc6e51999ed8009967be50b5fd41
MD5 19f97016522b6724be1f5ba765673902
BLAKE2b-256 ef3580306843302ae98b8edd658c378d5922d66f8e2cbc04d0fdac1299d2027e

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