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

icecube / ASTERIA / 15495819031

06 Jun 2025 05:03PM UTC coverage: 95.484%. First build
15495819031

Pull #133

github

web-flow
Merge 2551bff2a into 02b19ef91
Pull Request #133: Remove ASTERIA environment variable.

24 of 26 new or added lines in 4 files covered. (92.31%)

148 of 155 relevant lines covered (95.48%)

0.95 hits per line

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

30.0
/python/asteria/__init__.py
1
# Licensed under a 3-clause BSD style license - see LICENSE.rst
2
# -*- coding: utf-8 -*-
3
"""
4
=======
5
asteria
6
=======
7
Tools for IceCube supernova simulations, including neutrino luminosity and
8
energy spectra data files.
9
"""
10
from __future__ import absolute_import
1✔
11
from ._version import __version__
1✔
12

13

14
def set_rcparams(rcParams_file=None, *, verbose=False):
1✔
15
    """Updates Matplotlib rcParams with format specifiers from file
16

17
    Parameters
18
    ----------
19
    rcParams_file : str
20
        Path to custom rcParams file, Default value is
21
    verbose : bool
22
        If true, the rcParams
23

24
    Returns
25
    -------
26

27
    """
28
    import matplotlib as mpl
×
29
    if not rcParams_file:  # Load ASTERIA default
×
NEW
30
        from importlib.resources import files
×
NEW
31
        rcParams_file = files('asteria.etc').joinpath('asteria.rcParams')
×
32

33
    rcParams = mpl.rc_params_from_file(rcParams_file, fail_on_error=True)
×
34
    mpl.rcParams.update(rcParams)
×
35
    return rcParams if verbose else None
×
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