Skip to content

Instantly share code, notes, and snippets.

@kaizu
kaizu / a_ex.ipynb
Last active December 21, 2016 09:56
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
<?php
define( 'PLUGIN_PAPER_DIR', 'papers' );
define( 'PDF_ICON_FILE_PATH', 'image/pdf_alt.png' );
function ref_paper_get_paper_filename( $pubmed_id )
{
return PLUGIN_PAPER_DIR . '/' . $pubmed_id . '.xml';
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
This is a module for mathematical utility functions.
"""
from __future__ import print_function # This is for Python2
__author__ = "author"
__version__ = "1.0.0"
__copyright__ = "Copyright 2017, Planet Earth"
from ecell4 import *
# with reaction_rules():
# ~A == A | (Parameter(1.0), Parameter(1.0)) #<= Parameterize
def generate_model(k1=1.0, k2=1.0):
with reaction_rules():
~A == A | (k1, k2)
return get_model()
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.