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

Remove unneeded setting of precision that is causing errors in newer pandas versions #780

Merged
merged 3 commits into from
Mar 2, 2022

Conversation

susannasiebert
Copy link
Contributor

@susannasiebert susannasiebert commented Feb 23, 2022

This PR is in response to the error reported in #779. The cause is that newer versions of pandas (1.4.1 tested) have added another configuration variable containing the word "precision" making the statement pd.set_option('precision', 3) no longer unique and causing an error. This statement wasn't needed either way so this PR removes it.

During debugging of this issue, it was also discovered that the setting of 3 decimal places when writing the aggregate report file with float_format='%.3f' in the peptide_table.to_csv statement no longer has the desired effect in pandas 1.4.1. This PR restructures how the result set is constructed so that the float_format works again.

Closes #779

@susannasiebert susannasiebert merged commit da725fc into hotfix Mar 2, 2022
@susannasiebert susannasiebert deleted the py38 branch July 1, 2022 17:03
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.

pVACseq 3.0.0 fails on "Creating aggregated report"
1 participant