Skip to main content

Pre-release PyPI

genet-py logo

GENET

GENET is a global machine learning model of the near-Earth electron environment.

The model is a neural network that can reconstruct pitch-angle distributions of 0.1–100 keV electron fluxes at distances within ~20 Earth radii. Trained on Cluster observations.

Installation

pip install genet-py

You need a valid SuperMAG account to download the SME index.

Usage

Inputs

  • time: UTC datetime
  • coords_gsm: position in GSM coordinates, in Earth radii (RE)
  • energy: electron energy in keV, from 0.1 to 80
  • pitch_angle: pitch angle in degrees
  • percentile: predicted flux percentile, one of 5, 25, 50, 75, 95. The default is 50 (median).

Each input parameter can be either a single value or a list of values.

Output

  • Electron flux in 1 / (cm2 s sr keV)

Example

from genet import GENET
from datetime import datetime

genet = GENET(supermag_username="your_supermag_username")

flux = genet.predict(
    time=datetime(2015, 3, 17),  # UTC
    coords_gsm=(6.6, 0, 0),      # GSM coordinates in RE
    energy=50,                   # Energy in keV
    pitch_angle=90,              # Pitch angle in degrees
    percentile=50                # 5, 25, 50, 75, or 95
)

# Flux in 1 / (cm2 s sr keV)
print(flux)

Metadata

Release files for genet-py 0.1.2

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

Source distribution (sdist)

Source distribution for genet-py 0.1.2
File Size Uploaded
genet_py-0.1.2.tar.gz 2.9 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for genet-py 0.1.2
File Interpreter ABI Platform
genet_py-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 5.7 MB

Release files / genet_py-0.1.2.tar.gz

Download URL genet_py-0.1.2.tar.gz
Size 2.9 MB
Tags Source
SHA-256 checksum
How to use checksums
79d6dd889d46fc28fb45a411d753b47b9940148a53e33b568737b9eb9bae834e
BLAKE2b-256 checksum
How to use checksums
d76a2ab0ecff51e1e847a3fd85237a71c100ee95b184c4979089c5e9e9865b09
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 4, 2026.

Transparency log

Release files / genet_py-0.1.2-py3-none-any.whl

Download URL genet_py-0.1.2-py3-none-any.whl
Size 2.9 MB
Tags Python 3
SHA-256 checksum
How to use checksums
e5f7b34f4cd2a15e40431e45b6a0bf8f3770d301037b30474cfbc873266f79e5
BLAKE2b-256 checksum
How to use checksums
d096fa2cc224a7a21ad4679bcf21ca3a8a8eea39462e4f260a6fadcb1ab1af34
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 4, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

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