Skip to content

Bitwise operation error when load a MF-USG model #1187

@flydream0428

Description

@flydream0428

I have tried to use the loading function m1 = flopy.modflow.Modflow.load(fname, version='mfusg',verbose=False) to load a few different MF-USG models from very simples ones (a transient version of the example model in the document) to real-world complex models. With some careful twisting, it can load the data if check=False is applied. However, I have difficulty passing the check function. ALthough the error messages are different for different models, they are related to the code below,
C:\Anaconda\envs\py3\lib\site-packages\flopy\pakbase.py in _check_storage(self, chk, storage_coeff)

    417             chk.values(

    418                 sarrays["sy"],

--> 419                 active & (sarrays["sy"] < 0),

    420                 "zero or negative specific yield values",

    421                 "Error",

TypeError: ufunc 'bitwise_and' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''

I have attached a simple model below for testing. It is the first example model with the latest release. I only changed the steady-state model to a transient model.
01A_nestedgrid_nognc_TR.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions