Example #1
0
    def summarise_all(cls):
        from morphforge.stdimports import PostSynapticTemplateLibrary, CellLibrary, ChannelLibrary, MorphologyLibrary

        types = mrd.SectionNewPage(
            "Available class types",
            cls.summarise_channeltypes(),
            cls.summarise_currentclamptypes(),
            cls.summarise_voltageclamptypes(),
            cls.summarise_presynaptictriggertypes(),
            cls.summarise_postsynaptictemplatetypes(),
            cls.summarise_tracemethods(),
        )
        libraries = mrd.SectionNewPage(
            "Library Contents",
            ChannelLibrary.summary_table(),
            MorphologyLibrary.summary_table(),
            PostSynapticTemplateLibrary.summary_table(),
            CellLibrary.summary_table(),
        )

        return mrd.SectionNewPage("Morphforge Configuration", types, libraries)
Example #2
0
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
#  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# ----------------------------------------------------------------------



""" Summarise the cells and channels that are registered to an environment
"""

import mredoc
from morphforge.stdimports import PluginMgr, CellLibrary, ChannelLibrary, MorphologyLibrary
import morphforgecontrib.stdimports as mfc
from  modelling import *
fname = '~/Desktop/morphforge_channels.pdf'

mredoc.Section('Summary',
    CellLibrary.summary_table(),
    ChannelLibrary.summary_table(),
    MorphologyLibrary.summary_table(),
    ).to_pdf(fname)

print 'Cell & Channel summary stored at: %s'%fname