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

fix issue with logic, add debug statements #1163

Merged
merged 2 commits into from
Feb 25, 2023
Merged

fix issue with logic, add debug statements #1163

merged 2 commits into from
Feb 25, 2023

Conversation

mikemhenry
Copy link
Contributor

Description

There was a bug in the logic where if we saved a file with a .gz extension, we would save the file compressed, then overwrite the file with an uncompressed version.

Motivation and context

Since this commit: 1145a74 we have not actually been compressing our xml files.

Resolves #1157

How has this been tested?

Tested locally. I could be convinced to write a test, but with the refactoring coming up, I think will prefer to use a different method for this.

Change log

Resolves #1157 objects serialized with utils.data.serialize now will be compressed with bzip2 or gzip depending on file name (.gz and .bz2, respectively)

@codecov
Copy link

codecov bot commented Feb 25, 2023

Codecov Report

Merging #1163 (9f1c7ae) into main (2ff6ecc) will decrease coverage by 0.02%.
The diff coverage is 87.50%.

Copy link
Contributor

@ijpulidos ijpulidos left a comment

Choose a reason for hiding this comment

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

Oh wow, great catch! I totally missed that when I reviewed it. Thanks! LGTM.

@ijpulidos ijpulidos added this to the 0.10.2 Bugfix release milestone Feb 25, 2023
@ijpulidos ijpulidos merged commit c7971db into main Feb 25, 2023
@ijpulidos ijpulidos deleted the fix/issue_1157 branch February 25, 2023 21:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Serialized XML objects in small molecule pipeline have the wrong extension
2 participants