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.6.0.tar.gz (444.0 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.6.0-py3-none-any.whl (126.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for gsegutils-0.6.0.tar.gz
Algorithm Hash digest
SHA256 fb09975608b1881e99acda542d1764f27a96183af572b909accbc7f8fa8a9eed
MD5 bd17f17f7a84cfd18e96d6069fb1ed0a
BLAKE2b-256 3f51866f264643107641739817709998c03e322f837d504c1b23c13dcb5b070e

See more details on using hashes here.

Provenance

The following attestation bundles were made for gsegutils-0.6.0.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.6.0-py3-none-any.whl.

File metadata

  • Download URL: gsegutils-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 126.8 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.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0a6deae37fce929f0b503123251b132c8c3dd0caa47c9266432c1bfb0d7a0f82
MD5 f7fb2a4e5ee619b1e98b87d4aa1f7149
BLAKE2b-256 b42441b17aabf5ee1e9183be18b23597a935c123940d761f0667166d74463107

See more details on using hashes here.

Provenance

The following attestation bundles were made for gsegutils-0.6.0-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