Skip to content

Commit

Permalink
removed (commented-out) programmatic way of getting the nrnivmodl path
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Close committed Jan 27, 2017
1 parent 5ebddbc commit 307ac6d
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions pype9/neuron/cells/code_gen/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,23 +69,6 @@ class CodeGenerator(BaseCodeGenerator):

def __init__(self, gsl_path=None):
super(CodeGenerator, self).__init__()
# FIXME: This approach is more robust than relying on nrnivmodl being
# on the system path.
# Find the path to nrnivmodl
# neuron_home = neuron.h.neuronhome()
# arch_list = [platform.machine(), 'i686', 'x86_64', 'powerpc', 'umac']
# nrnivmodl_path = None
# for arch in arch_list:
# path = os.path.join(neuron.h.neuronhome(), '..', '..', arch,
# 'bin', 'nrnivmodl')
# if os.path.exists(path):
# nrnivmodl_path = path
# if nrnivmodl_path is None:
# logger.info("WARNING: could not find nrnivmodl at expected location '{}' "
# "so wasn't able to compile GSL random distribution wrapper "
# "required for random variables in generated neuron code"
# .format(os.path.join(neuron.h.neuronhome(), '..', '..',
# '<arch-name>', 'bin', 'nrnivmodl')))
self.nrnivmodl_path = self.path_to_exec('nrnivmodl')
self.modlunit_path = self.path_to_exec('modlunit')
self.nrnivmodl_flags = [
Expand Down

0 comments on commit 307ac6d

Please sign in to comment.