Skip to content

Feature/result str - #568

Merged
Jammy2211 merged 6 commits into
masterfrom
feature/result_str
Jul 29, 2022
Merged

Feature/result str#568
Jammy2211 merged 6 commits into
masterfrom
feature/result_str

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

Builds on this PR:

#564

  1. Makes LINE_LENGTH a config file parameter, as users may need different values for optimal display.

  2. Applies to more TextFormatters, so results also use this parameter.

@Jammy2211
Jammy2211 requested a review from rhayes777 July 25, 2022 14:30
Comment thread autofit/text/samples_text.py Outdated
sigma
The sigma within which the PDF is used to estimate errors (e.g. sigma = 1.0 uses 0.6826 of the PDF)."""

LINE_LENGTH = conf.instance["general"]["output"]["info_whitespace_length"]

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Might be worth making a function rather than repeating this

)

assert "Maximum Log Likelihood 1.00000000\n" in result_info
assert "Maximum Log Likelihood 1.00000000\n" in result_info

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I wonder if it's worth making this test dynamic

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Don't think so, the config is a tesrt specific one. Worry that dynamic might miss changes to source code.

@Jammy2211
Jammy2211 merged commit 97b8166 into master Jul 29, 2022
@Jammy2211
Jammy2211 deleted the feature/result_str branch November 27, 2022 15:29
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.

2 participants