• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Ruberhauptmann / quant-met / 17694421918

13 Sep 2025 09:00AM UTC coverage: 50.459% (+9.6%) from 40.81%
17694421918

Pull #136

github

web-flow
Merge 31195e228 into ba206def0
Pull Request #136: Prepare release

26 of 88 branches covered (29.55%)

Branch coverage included in aggregate %.

2 of 19 new or added lines in 5 files covered. (10.53%)

21 existing lines in 4 files now uncovered.

359 of 675 relevant lines covered (53.19%)

1.6 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/quant_met/utils.py
1
"""
2
Utility functions (:mod:`quant_met.utils`)
3
==========================================
4

5
.. currentmodule:: quant_met.utils
6

7
Functions
8
---------
9

10
.. autosummary::
11
   :toctree: generated/
12

13
    fermi_dirac
14
"""  # noqa: D205, D400
15

16
import numpy as np
×
17
import numpy.typing as npt
×
18
from numba import jit
×
19

20

21
@jit
×
UNCOV
22
def fermi_dirac(energy: npt.NDArray[np.floating], beta: float) -> npt.NDArray[np.floating]:
×
23
    """Fermi dirac distribution.
24

25
    Parameters
26
    ----------
27
    energy
28
    beta
29

30
    Returns
31
    -------
32
    fermi_dirac
33

34
    """
35
    return (
×
36
        np.where(energy < 0, 1.0, 0.0)
37
        if np.isinf(beta)
38
        else np.asarray(1 / (1 + np.exp(beta * energy)))
39
    )
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc