I have used NEURON to successfully replicate a model ran in XPPAUT. This model is the product of models going back to the 1970s and I have finally traced back through all the prior papers and have done a ton of dimensional analysis to get the units for all my model variables.
When attempting to run modlunit on one of my mod files, it complains that
Code: Select all
ikb must have the units, nanoamp, instead of fA.
I checked the nrnunits.lib file and see that the femto prefix is there. In my units block I also tried variations likeNew units can be defined in terms of default units and previously defined units by placing definitions in the UNITS block.
Code: Select all
(femtoamp) = (0.000001 nanoamp)
(fA) = (femptoamp)
I also have other units that are not NEURON default units like picomolar, femtofarad, picoseimen, etc that I would like to define. The bottom part of the tutorial I just mentioned also states that concentration is checked for units of milli/liter, so for picomolar would I do pico/liter?
This is my UNITS block so so far in case it is helpful
Code: Select all
UNITS{
(mV) = (millivolt)
(pS) = (picosiemens)
(molar) = (/liter)
(mM) = (millimolar)
(uM) = (micromolar)
(pL) = (picoliter)
(fF) = (femtofarad)
(fA) = (femtoamp)
sec_to_ms = (s) -> (ms)
}