Browse Source

okada: OSX+py3

python3
HerrMuellerluedenscheid 4 years ago
parent
commit
1601caff29
  1. 6
      okada/okada.py
  2. 2
      okada/snuffling.py

6
okada/okada.py

@ -1,7 +1,11 @@
import numpy, sys, os, ctypes, platform
from source import Source
libokada_file = 'libokada.' + { 'Linux': 'so'}[platform.system()]
try:
libokada_file = 'libokada.' + { 'Linux': 'so'}[platform.system()]
except KeyError:
raise ImportError('Okada Snuffling not available for architecture: %s' % platform.system())
libokada_path = os.path.join( os.path.dirname(__file__), libokada_file )
libokada = ctypes.cdll.LoadLibrary( libokada_path )

2
okada/snuffling.py

@ -14,6 +14,8 @@ try:
except OSError as e:
logger.warn('''\n %s
--> run 'make' in okada snuffling directory <--''' % e)
except ImportError as e:
logger.warn(e)
class okadaforward(Snuffling):

Loading…
Cancel
Save