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

Add ceil, floor and round functions #929

Merged
merged 3 commits into from
Aug 8, 2023
Merged

Conversation

clinssen
Copy link
Contributor

@clinssen clinssen commented Jul 7, 2023

No description provided.

Copy link
Contributor

@jougs jougs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Many thanks for this nice addition. It looks good to me.

Can you please also quickly reply to https://www.nest-initiative.org/mailinglist/hyperkitty/list/users@nest-simulator.org/thread/ZAMPB3FTGHJANSXNE5ZA6YNE6OFJSVEJ/ when this gets merged?

ceil_state_specifier = "ceil_state"
floor_state_specifier = "floor_state"
round_state_specifier = "round_state"
nest.SetStatus(mm, {"record_from": ["x", ln_state_specifier, log10_state_specifier, erf_state_specifier, erfc_state_specifier, ceil_state_specifier, floor_state_specifier, round_state_specifier]})
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't quite understand this line. Maybe others feel the same and a comment would help? Thanks!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the names of the recordables are assigned to variables and they are specified in the SetStatus() instead of directly providing their names as literal strings to the function. I also think that the former is not necessary.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah! Thanks for the clarification. Maybe it would be better to remove the variable assignments and use the specifiers directly?

@clinssen clinssen merged commit 94714a9 into nest:master Aug 8, 2023
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants