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

simonsobs / so3g / 8691248642

15 Apr 2024 02:48PM UTC coverage: 49.183%. Remained the same
8691248642

push

github

web-flow
Merge pull request #173 from simonsobs/store-spt3g-vers

Copy spt3g __version__, __file__ into so3g.spt3g

1 of 2 new or added lines in 1 file covered. (50.0%)

1295 of 2633 relevant lines covered (49.18%)

0.49 hits per line

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

50.0
/python/spt3g.py
1
"""
2
This package simply provides a universal way to import spt3g, either from a
3
bundled subpackage or from somewhere on the filesystem.
4
"""
5

6
import sys
1✔
7

8
try:
1✔
9
    from . import spt3g_internal
1✔
10
    sys.modules["spt3g"] = sys.modules["so3g.spt3g_internal"]
×
11
    sys.modules["spt3g"].__name__ = "spt3g"
×
12
    del sys.modules["so3g.spt3g_internal"]
×
NEW
13
    from spt3g import core, __version__, __file__
×
14
except:
1✔
15
    # Not bundled
16
    try:
1✔
17
        from spt3g import core, __version__, __file__
1✔
18
    except:
×
19
        raise ImportError("Cannot import either the internal or external spt3g!")
×
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