GSEGUtils
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6de3288b09a87a56bba489577d1677cba84e0121c933dc6f31d84db0f8dd24f9
|
|
| MD5 |
747af1469425136d8017dacb806e2327
|
|
| BLAKE2b-256 |
48a5936883c893bac85d14fb7841065310b5193d644abe8cc828dc36b504be64
|
Provenance
The following attestation bundles were made for gsegutils-0.5.3.tar.gz:
Publisher:
publish-pypi.yml on gseg-ethz/GSEGUtils
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gsegutils-0.5.3.tar.gz -
Subject digest:
6de3288b09a87a56bba489577d1677cba84e0121c933dc6f31d84db0f8dd24f9 - Sigstore transparency entry: 2144586454
- Sigstore integration time:
-
Permalink:
gseg-ethz/GSEGUtils@bc78a7b43d25d820171afc7848600e12cd88860e -
Branch / Tag:
refs/tags/v0.5.3 - Owner: https://github.com/gseg-ethz
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@bc78a7b43d25d820171afc7848600e12cd88860e -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bbdfca22fcd394296da9ae79c9470cad569607d0b2886379df65000fc4556f71
|
|
| MD5 |
293c3c3e82005963ce2ba0d6c0dfe654
|
|
| BLAKE2b-256 |
956ccba2ad25b1c095a694ec15792f5dd3dcf17fa647799476b686bbbb56b154
|
Provenance
The following attestation bundles were made for gsegutils-0.5.3-py3-none-any.whl:
Publisher:
publish-pypi.yml on gseg-ethz/GSEGUtils
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gsegutils-0.5.3-py3-none-any.whl -
Subject digest:
bbdfca22fcd394296da9ae79c9470cad569607d0b2886379df65000fc4556f71 - Sigstore transparency entry: 2144586484
- Sigstore integration time:
-
Permalink:
gseg-ethz/GSEGUtils@bc78a7b43d25d820171afc7848600e12cd88860e -
Branch / Tag:
refs/tags/v0.5.3 - Owner: https://github.com/gseg-ethz
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@bc78a7b43d25d820171afc7848600e12cd88860e -
Trigger Event:
release
-
Statement type: