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

icecube / ASTERIA / 15379216061

01 Jun 2025 08:40PM UTC coverage: 74.874% (+7.6%) from 67.32%
15379216061

Pull #129

github

web-flow
Merge 4ad6be139 into 49539ebf9
Pull Request #129: Increase coverage of initialization tests.

48 of 49 new or added lines in 2 files covered. (97.96%)

149 of 199 relevant lines covered (74.87%)

0.75 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
×
30
        import os
×
NEW
31
        rcParams_file = os.path.join(os.environ['ASTERIA'], 'python/asteria/etc/asteria.rcParams')
×
32
    rcParams = mpl.rc_params_from_file(rcParams_file, fail_on_error=True)
×
33
    mpl.rcParams.update(rcParams)
×
34
    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