Browse Source

okada: OSX+py3

python3
HerrMuellerluedenscheid 4 years ago
parent
commit
1601caff29
2 changed files with 7 additions and 1 deletions
  1. +5
    -1
      okada/okada.py
  2. +2
    -0
      okada/snuffling.py

+ 5
- 1
okada/okada.py View File

@ -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
- 0
okada/snuffling.py View File

@ -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