Thanks to visit codestin.com
Credit goes to github.com

Skip to content

refactor: deprecate unused flopy.utils.binaryfile.binaryread_struct#2201

Merged
christianlangevin merged 1 commit into
modflowpy:developfrom
mwtoews:dep-binaryread_struct
May 31, 2024
Merged

refactor: deprecate unused flopy.utils.binaryfile.binaryread_struct#2201
christianlangevin merged 1 commit into
modflowpy:developfrom
mwtoews:dep-binaryread_struct

Conversation

@mwtoews

@mwtoews mwtoews commented May 30, 2024

Copy link
Copy Markdown
Contributor

This PR deprecates binaryread_struct() (documented here), since it is not used. Before FloPy migrated to GitHub, this function was replaced by binaryread() as the default method used internally due to better performance of NumPy's fromfile() over struct's unpack().

This PR also improves the docstring for binaryread(), and provides low-level testing/coverage for both methods.

@mwtoews mwtoews force-pushed the dep-binaryread_struct branch 2 times, most recently from 155b222 to 27a37e0 Compare May 30, 2024 23:28
@mwtoews mwtoews force-pushed the dep-binaryread_struct branch from 27a37e0 to b8cc205 Compare May 30, 2024 23:31

@wpbonelli wpbonelli left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good to me but I will defer to others with longer history on the project, thanks @mwtoews

@christianlangevin christianlangevin left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Good idea to deprecate that old struct approach. Thanks for the docs and test.

@christianlangevin christianlangevin merged commit bbabf86 into modflowpy:develop May 31, 2024
@mwtoews mwtoews deleted the dep-binaryread_struct branch May 31, 2024 11:07
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.

3 participants