Skip to main content

A Python package for gravitational wave analysis using neural networks

Project description

SageNetGW

SageNetGW is a Python package for generating GW power-frequency curves. See https://github.com/YifangLuo/SageNet and https://github.com/bohuarolandli/stiffGWpy

Installation

pip install sagenetgw

Usage Example

from sagenetgw.classes import GWPredictor
import numpy as np
from matplotlib import pyplot as plt

predictor = GWPredictor(
        model_type='Transformer',
        device="cpu"
    )

prediction = predictor.predict({
    "r":3.9585109e-05, 
    "n_t":1.0116972, 
    "kappa10":110.42477, 
    "T_re":0.17453859, 
    "DN_re":39.366618,
    "Omega_bh2":0.0223828, 
    "Omega_ch2":0.1201075, 
    "H0":67.32117, 
    "A_s":2.100549e-9
})
pred_coords = np.column_stack((prediction['f'], prediction['log10OmegaGW']))
plt.plot(pred_coords[:, 0], pred_coords[:, 1], '--', color="royalblue", marker='.')

Project details


Download files

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

Source Distribution

sagenetgw-0.1.9.tar.gz (21.1 MB view details)

Uploaded Source

Built Distribution

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

sagenetgw-0.1.9-py3-none-any.whl (21.2 MB view details)

Uploaded Python 3

File details

Details for the file sagenetgw-0.1.9.tar.gz.

File metadata

  • Download URL: sagenetgw-0.1.9.tar.gz
  • Upload date:
  • Size: 21.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.0

File hashes

Hashes for sagenetgw-0.1.9.tar.gz
Algorithm Hash digest
SHA256 2a336ef889775052dec74f85acd1a17166c550f3fa02addf3756eb4dfb60eefc
MD5 501d8eb612406cde7867617fe3a09c84
BLAKE2b-256 230b509d218e7f78fc58c461eb88b9daa86af49c6bdc448b222297774175be7e

See more details on using hashes here.

File details

Details for the file sagenetgw-0.1.9-py3-none-any.whl.

File metadata

  • Download URL: sagenetgw-0.1.9-py3-none-any.whl
  • Upload date:
  • Size: 21.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.0

File hashes

Hashes for sagenetgw-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 a74861fee41e350789de2607d9b5a96f4e2d8db305a9e8ffa56dabac3a771cff
MD5 1c8220e261bc83478f1f04078e033349
BLAKE2b-256 d7d202a61d0003c091629a4ac4d344e2a631e5ff272fa4d6706e68b476070cd9

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