KarchinLab / open-cravat

A modular annotation tool for genomic variants
MIT License
110 stars 27 forks source link

gather_machine_data function fails on WSL #175

Closed BnetButter closed 5 months ago

BnetButter commented 1 year ago

in /cravat/cravat_metrics.py, line 38:

self.machinedata['fileSystem'] = psutil.disk_partitions()[0].fstype

This line throws an index error. I think it's because I'm on WSL. Fixed by replacing the line with:

self.machinedata['fileSystem'] = lxfs

Full stack trace

Traceback (most recent call last):
  File "/home/bnetbutter/Documents/open-cravat/cravat/cravat_class.py", line 336, in __init__
    self.metricObj = metrics.cravatMetrics()
  File "/home/bnetbutter/Documents/open-cravat/cravat/cravat_metrics.py", line 27, in __init__
    self.gather_machine_data()
  File "/home/bnetbutter/Documents/open-cravat/cravat/cravat_metrics.py", line 38, in gather_machine_data
    self.machinedata['fileSystem'] = psutil.disk_partitions()[0].fstype
IndexError: list index out of range
kmoad commented 5 months ago

Fixed in dev