Skip to content

warning generated despite correct syntax #1481

@wkitlasten

Description

@wkitlasten

gwf.modelgrid.intersect() generates the warning below, despite the correct syntax. Is this intentional? (I'd hate to "fix" it if it ain't broken) It wouldn't be a big deal except I am calling it from a lambda function in a large dataframe and it blows all other information off the screen!!

obs['ij'] = obs[[x_field, y_field]]. apply(lambda x: gwf.modelgrid.intersect(x[0], x[1], z=None, local=False, forgive=True), axis=1)

structuredgrid.py:777: UserWarning: The interface 'intersect(self, x, y, local=False, forgive=False)' has been deprecated. Use the intersect(self, x, y, z=None, local=False, forgive=False) interface instead.

Metadata

Metadata

Assignees

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