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

nz-gravity / LogPSplinePSD / 18209569030

03 Oct 2025 12:42AM UTC coverage: 80.878% (+1.6%) from 79.246%
18209569030

push

github

avivajpeyi
fix logger

549 of 654 branches covered (83.94%)

Branch coverage included in aggregate %.

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

469 existing lines in 17 files now uncovered.

3799 of 4722 relevant lines covered (80.45%)

1.61 hits per line

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

60.0
/src/log_psplines/example_datasets/utils.py
1
import os
2✔
2

3
import requests
2✔
4

5
from ..logger import logger
2✔
6

7
HERE = os.path.dirname(os.path.abspath(__file__))
2✔
8

9

10
def download_file(url: str, local_path: str) -> None:
2✔
11
    """Download a file from a URL to a local path.
12

13
    Args:
14
        url: URL of the file to download
15
        local_path: Local path to save the downloaded file
16
    """
17
    response = requests.get(url)
×
18
    response.raise_for_status()  # Ensure it downloaded properly
×
UNCOV
19
    with open(local_path, "wb") as f:
×
UNCOV
20
        f.write(response.content)
×
21

22

23
PSD_URL = "https://dcc.ligo.org/public/0165/T2000012/002/aligo_O3actual_H1.txt"
2✔
24
PSD_FILE = f"{HERE}/aligo_O3actual_H1.txt"
2✔
25
if not os.path.exists(PSD_FILE):
2✔
UNCOV
26
    logger.info(f"Downloading PSD file from {PSD_URL} to {PSD_FILE}")
×
UNCOV
27
    download_file(PSD_URL, PSD_FILE)
×
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