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

nz-gravity / LogPSplinePSD / 18146605905

30 Sep 2025 11:52PM UTC coverage: 78.908% (-0.1%) from 79.053%
18146605905

push

github

avivajpeyi
add txt file for faster simulation

369 of 462 branches covered (79.87%)

Branch coverage included in aggregate %.

2897 of 3677 relevant lines covered (78.79%)

1.58 hits per line

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

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

3
import requests
2✔
4

5
HERE = os.path.dirname(os.path.abspath(__file__))
2✔
6

7

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

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

20

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