Skip to main content

No project description provided

Project description

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

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.

aesoptparam-0.3.6-py3-none-any.whl (44.4 kB view details)

Uploaded Python 3

File details

Details for the file aesoptparam-0.3.6-py3-none-any.whl.

File metadata

  • Download URL: aesoptparam-0.3.6-py3-none-any.whl
  • Upload date:
  • Size: 44.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for aesoptparam-0.3.6-py3-none-any.whl
Algorithm Hash digest
SHA256 a9223f31e428640e1233dc884f25c2fd0f732cd713dcefcebbc80c64da6587fc
MD5 c031fda9793d5f2630bb4677e84f1c69
BLAKE2b-256 6f522f253bba2407d69b7c651dda2a0a18250acd3c2b459d3e856fea51594deb

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