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

Ruberhauptmann / quant-met / 17693956415

13 Sep 2025 08:12AM UTC coverage: 38.785% (-2.0%) from 40.81%
17693956415

Pull #136

github

web-flow
Merge 507a7a91e into ba206def0
Pull Request #136: Prepare release

6 of 75 branches covered (8.0%)

Branch coverage included in aggregate %.

1 of 18 new or added lines in 4 files covered. (5.56%)

15 existing lines in 4 files now uncovered.

243 of 567 relevant lines covered (42.86%)

1.29 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