Skip to content

Commit

Permalink
Fix URL in example_filepath function
Browse files Browse the repository at this point in the history
- Modified the URL in `example_filepath` function within `bgen_reader/_example.py`
- Updated URL format from `github.com/.../blob` to `raw.githubusercontent.com/...`

This change ensures that the URL correctly points to the raw content of the file
rather than the GitHub page, which allows direct file retrieval for the function.
  • Loading branch information
horta committed Oct 28, 2024
1 parent 3a4dbf2 commit bb6e913
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bgen_reader/_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
def example_filepath(filename: str):
import requests

url = "https://github.com/fastlmm/bgen-sample-files/blob/main"
url = "https://raw.githubusercontent.com/fastlmm/bgen-sample-files/main"

if filename not in _filenames:
raise ValueError(f"Unknown filename {filename}.")
Expand Down

0 comments on commit bb6e913

Please sign in to comment.