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

victoriyaforsythe / PyIRI / 15445085838

27 May 2025 07:45PM UTC coverage: 47.35%. Remained the same
15445085838

push

github

web-flow
Merge pull request #51 from victoriyaforsythe/release_candidate

Release candidate

398 of 572 new or added lines in 8 files covered. (69.58%)

582 existing lines in 4 files now uncovered.

956 of 2019 relevant lines covered (47.35%)

3.31 hits per line

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

75.0
/PyIRI/__init__.py
1
"""Core library imports for PyIRI."""
2

3
# Define a logger object to allow easier log handling
4
import logging
7✔
5
logging.raiseExceptions = False
7✔
6
logger = logging.getLogger('pyiri_logger')
7✔
7

8
osflag = False
7✔
9
try:
7✔
10
    from importlib import metadata
7✔
11
    from importlib import resources
7✔
12
except ImportError:
×
13
    import importlib_metadata as metadata
×
14
    import os
×
15
    osflag = True
×
16

17
# Import the package modules and top-level classes
18
from PyIRI import edp_update  # noqa F401
7✔
19
from PyIRI import igrf_library  # noqa F401
7✔
20
from PyIRI import main_library  # noqa F401
7✔
21
from PyIRI import plotting  # noqa F401
7✔
22

23
# Set version
24
__version__ = metadata.version('PyIRI')
7✔
25

26
# Determine the coefficient root directory
27
if osflag:
7✔
UNCOV
28
    coeff_dir = os.path.join(os.path.realpath(os.path.dirname(__file__)),
×
29
                             'coefficients')
30
else:
31
    coeff_dir = str(resources.files(__package__).joinpath('coefficients'))
7✔
32

33
del osflag
7✔
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