Skip to content

Commit

Permalink
Merge pull request #123 from compomics/icon-fix
Browse files Browse the repository at this point in the history
Fix GUI on Linux systems
  • Loading branch information
RalfG authored Feb 22, 2024
2 parents d4f9f72 + 3b56c4f commit abc0601
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ms2rescore/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""MS²Rescore: Sensitive PSM rescoring with predicted MS² peak intensities and RTs."""

__version__ = "3.0.0"
__version__ = "3.0.1"

from warnings import filterwarnings

Expand Down
4 changes: 3 additions & 1 deletion ms2rescore/gui/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import webbrowser
from pathlib import Path
from typing import Dict, List, Tuple
import platform

import customtkinter as ctk
from joblib import parallel_backend
Expand Down Expand Up @@ -648,6 +649,7 @@ def app():
dpi = root.winfo_fpixels("1i")
root.geometry(f"{int(15*dpi)}x{int(10*dpi)}")
root.title("MS²Rescore")
root.wm_iconbitmap(os.path.join(str(_IMG_DIR), "program_icon.ico"))
if platform.system() != "Linux":
root.wm_iconbitmap(os.path.join(str(_IMG_DIR), "program_icon.png"))

root.mainloop()
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ classifiers = [
dynamic = ["version"]
requires-python = ">=3.8"
dependencies = [
"numpy>=1.16.0",
"numpy>=1.16.0; python_version != '3.11'",
"numpy==1.24.3; python_version == '3.11'", # Incompatibility with sklearn, pygam, and TF...
"pandas>=1.0",
"rich>=12",
"pyteomics>=4.1.0",
Expand All @@ -41,7 +42,7 @@ dependencies = [
"click>=7",
"cascade-config>=0.4.0",
"deeplc>=2.2",
"deeplcretrainer>=0.2", # TODO: Release version pin
"deeplcretrainer>=0.2",
"tomli>=2; python_version < '3.11'",
"psm_utils>=0.4",
"customtkinter>=5,<6",
Expand Down

0 comments on commit abc0601

Please sign in to comment.