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

Edited terminal print output options #1

Merged
merged 1 commit into from
Sep 23, 2021
Merged

Edited terminal print output options #1

merged 1 commit into from
Sep 23, 2021

Conversation

htjb
Copy link
Owner

@htjb htjb commented Sep 23, 2021

Removed the kwarg all_output and replaced this with a new kwarg print_output which can have a value in the set [0, 1, 2]. This allows the user to print out to the terminal the full set of fits performed by maxsmooth (print_output=2), just the optimum result(print_output=1) or nothing(print_output=0).

In each case the optimum result is saved to disc and it can be useful to limit what is printed by maxsmooth in some instances to make the terminal output of other code readable. For example when wrapping maxsmooth inside other fitting algorithms (e.g. nested sampling codes like polychord).

@htjb htjb merged commit 6187675 into master Sep 23, 2021
@htjb htjb deleted the terminal_output branch September 23, 2021 14:56
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.

None yet

1 participant