Skip to main content

AESOpt Param (aesoptparam)

pipeline status coverage report

Is a light weight extension of the open source param project.

The param project is a library for handling all the user-modifiable parameters, arguments, and attributes that control code. It adds a way to declare parameters via their type while also adding meta data such as documentation, valid range, etc. For a more extensive introduction user are referred to the project homepage: https://param.holoviz.org/ The param webpage is also where users are expected to look for more detailed use of aesoptparam.

aesoptparam is purely extending param, by adding the following features:

  • Make an extended Parameterized -> AESOptParameterized, which adds the following features:
    • Method for getting data as a dict (.as_dict)
    • Method for serializing data (.as_serial). Used for saving data to JSON, YAML, TOML
    • Method for setting data from a dict (.from_dict). Also works for nested dicts
    • Method for validating numpy array shapes (.validate_array_shapes). See AESOptArray for more.
    • Method for interpolating arrays (.interp)
    • Method for setting values in others units than their default units (.set_val)
    • Method for gettting values in others units than their default units (.get_val)
    • HTML rendering of the AESOptParameterized instance content (Name, Documentation, Type, Range, Units, Value)
    • Adds posibility for setting a parent_object for nested AESOptParameterized, which allows others values to refer to any other value however deeply nested it is
  • A set of new/modified parameters:
    • SubParameterized: Parameter to add nested AESOptParameterized. It will automatically add the parent object.
    • ListOfParameterized: Parameter to add a list of AESOptParameterized.
    • AESOptString: Adds the following list of attributes or methods:
      • default_ref: Referencing another parameter string
    • AESOptBoolean: Adds the following list of attributes or methods:
      • default_ref: Referencing another parameter string
    • AESOptNumber: Adds the following list of attributes or methods:
      • units
      • default_ref: Referencing another parameter number
    • AESOptInteger: Adds the following list of attributes or methods:
      • units
      • default_ref: Referencing another parameter number
    • AESOptArray: Adds the following list of attributes or methods:
      • bounds, softbounds. inclusive_bounds, similar to param.Number
      • units
      • dtype: The array data type
      • shape: The shape of the array. Can also be a reference to another parameter. Used for validating array shape.
      • default_full: Makes the default a array full of a given number. Using numpy.full. The first argument can reference others parameters to get their shape.
      • default_interp: The default is to interpolate the array from other arrays. Arguments can both be arrays or references to others arrays.
      • default_ref: Referencing another parameter array

Besides the core features above, it also adds some utility tools:

  • display_json_data : Function to render JSON compliant data as a HTML table in Jupyter notebooks. It also works for numpy data that has numeric data dtypes.
  • read_json : Method for reading JSON data file, which automatically can convert numeric list's to numpy.
  • write_json : Method for writing JSON data file, which automatically can convert numeric numpy arrays and types to list of build-in types.

Documentation

AESOpt Param Documentation

Metadata

Release files for aesoptparam 0.3.7

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

Built distribution (wheel)

Table of built distributions (wheels) for aesoptparam 0.3.7
File Interpreter ABI Platform Actions
aesoptparam-0.3.7-py3-none-any.whl Python 3 none any Details for aesoptparam-0.3.7-py3-none-any.whl

Release files / aesoptparam-0.3.7-py3-none-any.whl

Download URL aesoptparam-0.3.7-py3-none-any.whl
Size 44.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5d0108500f1f23f54f84af0c0dd4422355ab28748dfae04fdc4868f13927953f
BLAKE2b-256 checksum
How to use checksums
04e0ae2e1ff3f7ae94fa439ebcea0e53b97cf02cf0927ea78880454f307a61e0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.7

Security for aesoptparam 0.3.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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