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

victoriyaforsythe / PyIRI / 15282160672

27 May 2025 05:45PM UTC coverage: 47.272%. First build
15282160672

push

github

web-flow
Merge pull request #49 from victoriyaforsythe/victoriya_tests

New F1 model, new EDP construction, tests.

361 of 479 new or added lines in 8 files covered. (75.37%)

953 of 2016 relevant lines covered (47.27%)

3.31 hits per line

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

72.73
/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 igrf_library  # noqa F401
7✔
19
from PyIRI import main_library  # noqa F401
7✔
20
from PyIRI import plotting  # noqa F401
7✔
21

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

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

32
# Determine the coefficient root directory
33
if osflag:
7✔
NEW
34
    testdata_dir = os.path.join(os.path.realpath(os.path.dirname(__file__)),
×
35
                                'testdata')
36
else:
37
    testdata_dir = str(resources.files(__package__).joinpath('testdata'))
7✔
38

39
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

© 2025 Coveralls, Inc