Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build_and_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-13, macos-14] # macos-13 for intel, macos-14 for apple silicon
os: [ubuntu-latest, windows-latest, macos-latest, macos-15-intel] # macos-latest for ARM, macos-15-intel for x86_64; see https://github.com/actions/runner-images/issues/13046
steps:
- uses: actions/checkout@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion ms2pip/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# isort: skip_file
"""MS2PIP: Accurate and versatile peptide fragmentation spectrum prediction."""

__version__ = "4.1.1"
__version__ = "4.1.2"

from warnings import filterwarnings

Expand Down
6 changes: 5 additions & 1 deletion ms2pip/_utils/xgb_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,11 @@ def _download_model(model, model_hash, model_dir):
filename = os.path.join(model_dir, model)

logger.info(f"Downloading {model} to {filename}...")
urllib.request.urlretrieve(f"https://zenodo.org/records/13270668/files/{model}", filename)
try:
urllib.request.urlretrieve(f"https://genesis.ugent.be/uvpublicdata/ms2pip/{model}", filename)
except Exception:
logger.warning("Falling back to Zenodo for model downloads.")
urllib.request.urlretrieve(f"https://zenodo.org/records/13270668/files/{model}", filename)
if not _check_model_integrity(filename, model_hash):
raise InvalidXGBoostModelError()

Expand Down