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

Protect commented slots #137

Merged
merged 1 commit into from
Feb 9, 2020
Merged

Conversation

gustavdelius
Copy link
Member

Slots in a MizerParams object that have been given a comment will now be protected against recalculation from the species params. So for example if you do

comment(params@search_vol) <- "This should not change"
params@species_params$gamma <- 10
params <- setParams(params)

this will just issue a warning "The search volume has been commented and therefore will not be recalculated from the species parameters".

This is very useful when you calculate a slot by hand, to avoid it being overwritten by accident later by an injudicious call to setParams().

comment will now be protected against recalculation from
the species params.
@gustavdelius gustavdelius merged commit 900442f into sizespectrum:master Feb 9, 2020
@gustavdelius gustavdelius deleted the testmaster branch February 9, 2020 02:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant