Skip to content

COMPAT: fix assert_geometries_equal to work with numpy 2.0 copy changes#2007

Merged
jorisvandenbossche merged 1 commit intoshapely:mainfrom
jorisvandenbossche:fix-testing-np-2
Mar 6, 2024
Merged

COMPAT: fix assert_geometries_equal to work with numpy 2.0 copy changes#2007
jorisvandenbossche merged 1 commit intoshapely:mainfrom
jorisvandenbossche:fix-testing-np-2

Conversation

@jorisvandenbossche
Copy link
Copy Markdown
Member

@jorisvandenbossche jorisvandenbossche commented Mar 5, 2024

Recent change in numpy main with different semantics for the copy keyword, where copy=False will now guarantee (instead of try) to not make a copy, and thus raise an error when it cannot create the array without allocating data.

@coveralls
Copy link
Copy Markdown

Pull Request Test Coverage Report for Build 8155463209

Details

  • 2 of 2 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall first build on fix-testing-np-2 at 88.092%

Totals Coverage Status
Change from base Build 8152237562: 88.1%
Covered Lines: 2604
Relevant Lines: 2956

💛 - Coveralls

Copy link
Copy Markdown
Member

@mwtoews mwtoews left a comment

Choose a reason for hiding this comment

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

Thanks! I see the upstream change numpy/numpy@acf49fe and various connected issues.

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.

4 participants