Skip to content
Snippets Groups Projects
Commit 42f15c95 authored by Dilawar Singh's avatar Dilawar Singh
Browse files

Fixed, python2 incompatible print function use.

parent 67012a1c
No related branches found
No related tags found
1 merge request!213Update rmoogli.py
......@@ -41,21 +41,22 @@ add_custom_command( OUTPUT ${OUTPUT_MOOSEBIN}
)
# Now build moose-gui and moose-examples.
# Make sure each script is compilable. Else report an error.
add_custom_target( gui ALL
COMMAND ${CMAKE_COMMAND} -E copy_directory
${MOOSE_GUI_DIR} ${MOOSE_GUI_INSTALL_DIR}
COMMAND ${CMAKE_COMMAND} -E copy_directory ${MOOSE_GUI_DIR} ${MOOSE_GUI_INSTALL_DIR}
COMMAND ${PYTHON_EXECUTABLE} -m compileall -q ${MOOSE_GUI_INSTALL_DIR}
COMMENT "Building moose-gui"
VERBATIM
)
# Now copy moose-examples.
add_custom_command( TARGET gui POST_BUILD
COMAMND ${CMAKE_COMMAND} -E copy_directory
${MOOSE_EXAMPLE_DIR} ${MOOSE_EXAMPLE_INSTALL_DIR}
add_custom_target( examples ALL
COMMAND ${CMAKE_COMMAND} -E copy_directory ${MOOSE_EXAMPLE_DIR} ${MOOSE_EXAMPLE_INSTALL_DIR}
COMMAND ${PYTHON_EXECUTABLE} -m compileall -q ${MOOSE_EXAMPLE_INSTALL_DIR}
VERBATIM
)
add_dependencies(moose moose-core gui)
add_dependencies(moose moose-core gui examples)
add_dependencies(examples gui)
## moose-gui
......@@ -65,11 +66,13 @@ set(MOOSE_GUI_DIR ${CMAKE_SOURCE_DIR}/moose-gui)
install(DIRECTORY ${PYMOOSE_INSTALL_DIR}/
DESTINATION ${CMAKE_INSTALL_PREFIX}
PATTERN ".git" EXCLUDE
PATTERN "*.pyc" EXCLUDE
)
install(DIRECTORY ${MOOSE_GUI_INSTALL_DIR}/
DESTINATION lib/moose/gui
PATTERN ".git*" EXCLUDE
PATTERN "*.pyc" EXCLUDE
)
install(DIRECTORY ${MOOSE_EXAMPLE_DIR}/
......@@ -77,6 +80,7 @@ install(DIRECTORY ${MOOSE_EXAMPLE_DIR}/
PATTERN ".git*" EXCLUDE
PATTERN "_travis*" EXCLUDE
PATTERN ".travis*" EXCLUDE
PATTERN "*.pyc" EXCLUDE
)
configure_file( ${CMAKE_SOURCE_DIR}/cmake/moose.in ${CMAKE_BINARY_DIR}/moose )
......
3.1.1
\ No newline at end of file
3.1.1-71-g67012a1
\ No newline at end of file
from __future__ import print_function
#/**********************************************************************
#** This program is part of 'MOOSE', the
......@@ -33,11 +34,9 @@ from PyQt4 import Qt, QtCore, QtGui
from numpy import random as nprand
from moose.neuroml.NeuroML import NeuroML
import sys
sys.path.append( "/home/bhalla/moose/trunk/Demos/util" )
import rdesigneur as rd
import moogli
cellname = "./cells_channels/CA1_nochans.morph.xml"
#cellname = "./ca1_minimal.p"
fname = "fig6bcde"
#############################################
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment