MannLabs / alphadia

modular & open DIA search
https://alphadia.readthedocs.io
Apache License 2.0
41 stars 3 forks source link

Fix uname issue #201

Closed mschwoer closed 3 months ago

mschwoer commented 3 months ago

Fixing an issue reported by @vbrennsteiner .

I created a release already from this branch to enable re-testing.

0:01:39.853910 PROGRESS: Predicting library properties.
0:01:39.853910 INFO: Running PeptDeepPrediction
0:01:39.853910 INFO: Traceback (most recent call last):
  File "alphadia\cli.py", line 333, in run
    plan = Plan(
           ^^^^^
  File "alphadia\planning.py", line 126, in __init__
    self.load_library()
  File "alphadia\planning.py", line 229, in load_library
    spectral_library = pept_deep_prediction(spectral_library)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "alphadia\libtransform.py", line 40, in __call__
    return self.forward(*args)
           ^^^^^^^^^^^^^^^^^^^
  File "alphadia\libtransform.py", line 304, in forward
    device = "mps" if os.uname().sysname == "Darwin" else "gpu"
                      ^^^^^^^^
AttributeError: module 'os' has no attribute 'uname'

0:01:39.853910 ERROR: module 'os' has no attribute 'uname'