Skip to content

array converters #25

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

Merged
merged 6 commits into from
Jun 18, 2025
Merged

Conversation

wpbonelli
Copy link
Member

@wpbonelli wpbonelli commented Jun 18, 2025

convert (possibly sparse) dict or recarray or dataframe to array. generalizes the hard-coded array converter we prototyped here.

returns a dense (i.e. numpy) array right now. in followup work, introduce a threshold over which a sparse array is returned instead. maybe have a default threshold which because active automatically if sparse can be imported.

@wpbonelli wpbonelli merged commit ab0d2ff into modflowpy:develop Jun 18, 2025
11 checks passed
@wpbonelli wpbonelli deleted the sparse-array-converter branch June 18, 2025 22:55
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.

1 participant