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

bug: flopy.utils.get_transmissivities bug report #1611

Open
Paszka1 opened this issue Oct 31, 2022 · 1 comment
Open

bug: flopy.utils.get_transmissivities bug report #1611

Paszka1 opened this issue Oct 31, 2022 · 1 comment
Assignees
Labels
Milestone

Comments

@Paszka1
Copy link

Paszka1 commented Oct 31, 2022

Please refer to cell 4 of the flopy3_get_transmissivities_example notebook. Is there a bug in the case of well 0? I.e., transmissivities should all be 0 for this well, but it is 2 in layer 3.

@Paszka1 Paszka1 added the bug label Oct 31, 2022
@Paszka1
Copy link
Author

Paszka1 commented Nov 2, 2022

As a follow up on the above message, I checked the source code of the module and I found some unclear steps at the end of the function code. I.e., thick[closest, i] = 1.0 in the last line of the for loop doesn't make sense to me.

    not_in_layer = np.sum(thick < 0, axis=0)
    not_in_any_layer = not_in_layer == thick.shape[0]
    for i, n in enumerate(not_in_any_layer):
        if n:
            closest = np.argmax(thick[:, i])
            thick[closest, i] = 1.0
    thick[thick < 0] = 0
    thick[heads == nodata] = 0  # exclude nodata cells

@wpbonelli wpbonelli added this to the 3.6.1 milestone Mar 2, 2024
@wpbonelli wpbonelli modified the milestones: 3.6.1, 3.7.0 May 1, 2024
@wpbonelli wpbonelli modified the milestones: 3.7.0, 3.7.1 May 23, 2024
@wpbonelli wpbonelli modified the milestones: 3.7.1, 3.8.0 Jun 17, 2024
@wpbonelli wpbonelli modified the milestones: 3.8.0, 3.8.1 Aug 5, 2024
@wpbonelli wpbonelli modified the milestones: 3.8.1, 3.9.1 Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants