Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change names in NEST "RecordablesMap" to name objects #13

Open
tclose opened this issue Oct 16, 2014 · 0 comments
Open

Change names in NEST "RecordablesMap" to name objects #13

tclose opened this issue Oct 16, 2014 · 0 comments

Comments

@tclose
Copy link
Contributor

tclose commented Oct 16, 2014

Alongside the main cpp file, create a "names" file that lists the object names using "names" objects. For example the "V_m" names object in the code below

template <> void RecordablesMap<hodgkin_huxley>::create()
{

   insert_("K_m48O", &hodgkin_huxley::get_y_elem_<hodgkin_huxley::State_::K_M48O>);

   insert_("Na_h43O", &hodgkin_huxley::get_y_elem_<hodgkin_huxley::State_::NA_H43O>);

   insert_("Na_m42O", &hodgkin_huxley::get_y_elem_<hodgkin_huxley::State_::NA_M42O>);

   insert_("v", &hodgkin_huxley::get_y_elem_<hodgkin_huxley::State_::V>);


   insert_(names::V_m, &hodgkin_huxley::get_y_elem_<hodgkin_huxley::State_::V>);


}
@tclose tclose added the NEST label Oct 16, 2014
@tclose tclose modified the milestone: v0.2 Jul 8, 2016
@tclose tclose modified the milestones: v0.4, v0.3 Jan 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant