Skip to main content

GSEGUtils

License: BSD-3 Documentation Status

GSEGUtils provides some tools and functionality that are used across other development or research projects. These are particularly focussed in the direction of research within the group.

The main goal if this repo is to help software development efforts and allow more focus on algorithm development, data processing and research rather than code debugging and maintenance.

Currently this module includes:

Package Description
BaseArrays Sub-classable array objects with automated validation on type, shape and attributes
Lazy Disk Cache Automated data offloading for memory management
Util Includes utility functions such as angle unit conversions
Validators Helper functions for performing validation and normalisation

Installation

This can be done directly from the repository directory:

pip install git+ssh://git@github.com/gseg-ethz/GSEGUtils.git

or by cloning it

git clone https://github.com/gseg-ethz/GSEGUtils.git
cd GSEGUtils
pip intstall .

Usage

Accessing the different classes can then be easily done by importing from GSEGUtils:

>>> from GSEGUtils.base_arrays import BaseArray, ArrayNx3, BaseVector
>>> import numpy as np
>>> data = np.random.rand(10,20,3)
>>> array = BaseArray(data)

>>> array.shape
(10, 20, 3)

>>> np.all(array == data)
np.True_

>>> a = ArrayNx3(np.random.rand(10, 3))
>>> b = a + 10
>>> np.all(b == a + 10)
np.True_

coords3D = Array_Nx3(np.random.rand(20, 3))
coords3d.arr = np.random.rand(100)
# RAISES ERROR -> invalid shape not of (N, 3), expected (N,)

coords3d.arr = np.random.rand(100, 3)
# Valid as the array is of shape Nx3

Verifying Releases

Download a wheel from a release and verify its Sigstore provenance attestation:

gh attestation verify gsegutils-0.5.2-py3-none-any.whl --repo gseg-ethz/GSEGUtils

See RELEASE.md for claim fields, rollback procedure, and environment details.

Download files

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

Source Distribution

gsegutils-0.5.3.tar.gz (115.8 kB view details)

Uploaded Source

Built Distribution

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

gsegutils-0.5.3-py3-none-any.whl (52.9 kB view details)

Uploaded Python 3

File details

Details for the file gsegutils-0.5.3.tar.gz.

File metadata

  • Download URL: gsegutils-0.5.3.tar.gz
  • Upload date:
  • Size: 115.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for gsegutils-0.5.3.tar.gz
Algorithm Hash digest
SHA256 6de3288b09a87a56bba489577d1677cba84e0121c933dc6f31d84db0f8dd24f9
MD5 747af1469425136d8017dacb806e2327
BLAKE2b-256 48a5936883c893bac85d14fb7841065310b5193d644abe8cc828dc36b504be64

See more details on using hashes here.

Provenance

The following attestation bundles were made for gsegutils-0.5.3.tar.gz:

Publisher: publish-pypi.yml on gseg-ethz/GSEGUtils

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file gsegutils-0.5.3-py3-none-any.whl.

File metadata

  • Download URL: gsegutils-0.5.3-py3-none-any.whl
  • Upload date:
  • Size: 52.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for gsegutils-0.5.3-py3-none-any.whl
Algorithm Hash digest
SHA256 bbdfca22fcd394296da9ae79c9470cad569607d0b2886379df65000fc4556f71
MD5 293c3c3e82005963ce2ba0d6c0dfe654
BLAKE2b-256 956ccba2ad25b1c095a694ec15792f5dd3dcf17fa647799476b686bbbb56b154

See more details on using hashes here.

Provenance

The following attestation bundles were made for gsegutils-0.5.3-py3-none-any.whl:

Publisher: publish-pypi.yml on gseg-ethz/GSEGUtils

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page