Skip to main content

Python scripts used by the fusion energy group at UiT The Arctic University of Norway.

Project description

superposed-pulses

Collection of tools designed to generate realizations of the Poisson point process.

Installation

The package is published to PyPI and can be installed with

pip install superposed-pulses

If you want the development version you must first clone the repo to your local machine, then install the project in development mode:

git clone https://github.com/uit-cosmo/superposed-pulses.git
cd superposed-pulses
pip install -e .

Usage

The simplest case, using defaults: exponential pulse shape, exponentially distributed amplitudes, constant duration times, write

import matplotlib.pyplot as plt
import superposedpulses.point_model as pm

model = pm.PointModel(waiting_time=10.0, total_duration=100, dt=0.01)
times, signal = model.make_realization()

plt.plot(times, signal)
plt.show()

Take a look at superposed-pulses/superposedpulses/example.py to find out how to change amplitudes, waiting times, duration times and the pulse shape of the process.

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

superposed-pulses-1.4.tar.gz (9.1 kB view details)

Uploaded Source

Built Distribution

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

superposed_pulses-1.4-py3-none-any.whl (11.6 kB view details)

Uploaded Python 3

File details

Details for the file superposed-pulses-1.4.tar.gz.

File metadata

  • Download URL: superposed-pulses-1.4.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for superposed-pulses-1.4.tar.gz
Algorithm Hash digest
SHA256 9e71cd3e973e46af2d6ef6a3ea86f2f4a1efafa76fb7b1e3c21eb70c4bbbdef0
MD5 d547fc9bde93bdf0b1072b7b7ce84d74
BLAKE2b-256 c52cb25aa96dfd4d15084e65c8aca6661ae5a38e07c228bec914f2d97c4ae03f

See more details on using hashes here.

File details

Details for the file superposed_pulses-1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for superposed_pulses-1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 81c05118e4d9bbfd0dca506e9b98b048c50335a9388473e3ee6735a6b0fb7d29
MD5 f0b2b01c64b1bd48fd7b59cf77d48832
BLAKE2b-256 16175c00ef426ef1e0b6e2f5a04e336bd3d04d52d1f19a4cd62db83a86cb0b68

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