semvec/pypi-packages huggingface dataset:
diffuse-neutrino-flux 0.3.0
Lightweight package to plot diffuse neutrino flux measurements
License: MIT
Requires Python: >=3.10

[![CI](https://github.com/JannisNe/diffuse_neutrino_flux/actions/workflows/test.yml/badge.svg)](https://github.com/JannisNe/timewise/actions/workflows/test.yml)
[![PyPI version](https://badge.fury.io/py/diffuse_neutrino_flux.svg)](https://badge.fury.io/py/diffuse_neutrino_flux)
# Add diffuse neutrino flux measurements to your plots

## Usage

The central object is the `Spectrum`. Curently implented spectral shapes are the `SinglePowerLaw`, `BrokenPowerLaw` and the `LogParabola`. The impleneted measurements can be found in `diffuse_neutrino_flux/data/measurements.json`. They can be shown by 
```python
from diffuse_neutrino_flux import Spectrum
print(Spectrum.list_available_spectra())
```

The spectrum can be plotted. If a contour file is available, also the corresponding butterfly can be shown. The `energy_scaling` parameter can be used to scale the energy axis. All other parameters are passed to the `matplotlib` plot function. 

```python
import matplotlib.pyplot as plt
from diffuse_neutrino_flux import Spectrum

s = Spectrum.from_key("joint15")

fig, ax = plt.subplots()
s.plot(ax=ax, label="Joint15", color="blue", energy_scaling=2)
s.plot_cl(ax=ax, color="blue", alpha=0.5, energy_scaling=2)
ax.set_xlabel("Energy [GeV]")
ax.set_ylabel("Flux [GeV cm$^{-2}$ s$^{-1}$ sr$^{-1}$]")
ax.set_xscale("log")
ax.set_yscale("log")
ax.legend()
plt.show()
```

![Joint15 spectrum](example.png)

## Adding new measurements
To add a new measurement, you need to create a new entry in `diffuse_neutrino_flux/data/measurements.json`. To be able to plot the butterfly, you also need to create a contour file. Simply trace the contour scan in the parameter plane and add the data as a CSV file in `diffuse_neutrino_flux/data/` as `<new_measurement_name>_contour<confidence_level>.csv`.
tree-sitter-epics-msi-template 0.1.2
tree-sitter grammar for EPICS macros
License: MIT
Requires Python: >=3.10
Keywords: incremental, parsing, tree-sitter, epics

# tree-sitter-epics-msi-template

[![CI][ci]](https://github.com/minijackson/tree-sitter-epics-msi-template/actions/workflows/ci.yml)
[![discord][discord]](https://discord.gg/w7nTvsVJhm)
[![matrix][matrix]](https://matrix.to/#/#tree-sitter-chat:matrix.org)
[![npm][npm]](https://www.npmjs.com/package/tree-sitter-epics-msi-template)
[![crates][crates]](https://crates.io/crates/tree-sitter-epics-msi-template)
[![pypi][pypi]](https://pypi.org/project/tree-sitter-epics-msi-template/)

A Tree-sitter parser for EPICS macros.

## References

- [EPICS Macro substitution documentation](https://docs.epics-controls.org/en/latest/appdevguide/databaseDefinition.html#macro-substitution)

[ci]: https://img.shields.io/github/actions/workflow/status/minijackson/tree-sitter-epics-msi-template/ci.yml?logo=github&label=CI
[discord]: https://img.shields.io/discord/1063097320771698699?logo=discord&label=discord
[matrix]: https://img.shields.io/matrix/tree-sitter-chat%3Amatrix.org?logo=matrix&label=matrix
[npm]: https://img.shields.io/npm/v/tree-sitter-epics-msi-template?logo=npm
[crates]: https://img.shields.io/crates/v/tree-sitter-epics-msi-template?logo=rust
[pypi]: https://img.shields.io/pypi/v/tree-sitter-epics-msi-template?logo=pypi&logoColor=ffd242
fal-client-fake 0.3.0
A tiny, dependency-free fake of the fal.ai Python SDK (testing only).
License: MIT
Requires Python: >=3.10
Keywords: fake, fal, mock, sdk, testing

fake-fal-client
================
Fake client for tests (not affiliated with fal.ai).

Install:  pip install fake-fal-client
Use:      import fal_client