Skip to content

Commit

Permalink
Fixed ruff linting in vis/freeview.py. Removed unused import, changed…
Browse files Browse the repository at this point in the history
… undefined config.threshold -> self.threshold, commented out unused variable.
  • Loading branch information
jnolan14 committed Jul 15, 2024
1 parent c907d49 commit 1f1d33e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions surfa/vis/freeview.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import os
import shutil
import tempfile
import numpy as np

from surfa import Mesh
from surfa.system import run
Expand Down Expand Up @@ -206,7 +205,7 @@ def __init__(self, arr, name='overlay', threshold=None, opacity=None):

def tags(self):
tags = ''
tags += '' if self.threshold is None else f':overlay_threshold=' + ','.join(str(x) for x in config.threshold)
tags += '' if self.threshold is None else ':overlay_threshold=' + ','.join(str(x) for x in self.threshold)
tags += '' if self.opacity is None else f':overlay_opacity={self.opacity}'
return tags

Expand Down Expand Up @@ -263,7 +262,7 @@ def _find_vgl():
"""
Locate the VGL wrapper if installed.
"""
have_key = os.path.isfile('/etc/opt/VirtualGL/vgl_xauth_key')
# have_key = os.path.isfile('/etc/opt/VirtualGL/vgl_xauth_key')
vgl_path = shutil.which('vglrun')
if vgl_path is None:
vgl_path = shutil.which('vglrun', path='/usr/pubsw/bin')
Expand Down

0 comments on commit 1f1d33e

Please sign in to comment.