GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — BUG: Fix data stmt handling for complex values in f2py by HaoZeke · Pull Request #23282 · numpy/numpy

Conversation

@HaoZeke

@HaoZeke HaoZeke commented Feb 26, 2023 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Closes #23276. I also couldn't resist changing the variable names a bit for posterity.

The crux of the fix is in e12392d that the truncation is wrong for COMPLEX types, so we check for them and continue and uses regular expressions to capture the COMPLEX data correctly. The other commits are cleanups and tests.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@github-actions github-actions Bot added the 00 - Bug label Feb 26, 2023
@HaoZeke HaoZeke added the component: numpy.f2py label Feb 26, 2023
@HaoZeke

HaoZeke commented Feb 26, 2023

Copy link
Copy Markdown
Member Author

Build failure seems to be unrelated (sudo apt timeout for gfortran on Travis CI)

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

mattip
mattip reviewed Feb 27, 2023
View reviewed changes
Comment thread numpy/f2py/crackfortran.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

HaoZeke
HaoZeke commented Feb 27, 2023
View reviewed changes
Comment thread numpy/f2py/crackfortran.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

@mattip mattip added the triage review Issue/PR to be discussed at the next triage meeting label Feb 27, 2023
@HaoZeke

HaoZeke commented Mar 4, 2023

Copy link
Copy Markdown
Member Author

I've decided to rework this, I'll extract the fix (and update it) with the original variables and open a new PR with the renamed variables.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

HaoZeke added 5 commits April 15, 2023 18:04
@HaoZeke
TST: Add test for numpygh-23276
1d02e2b
@HaoZeke
BUG: Simplify and fix numpygh-23276
e12392d
@HaoZeke
TST: Add tests for edge case with data statements
e2288b3
@HaoZeke
MAINT: Add a helper
3d58d8c
@HaoZeke
BUG: Handle data statements in pyf files correctly
a97f209
@HaoZeke
HaoZeke force-pushed the fixDataStmtHandlingF2PY branch from 9b1ca14 to a97f209 Compare April 15, 2023 19:02
@HaoZeke
HaoZeke requested a review from melissawm April 21, 2023 16:07
@mattip mattip removed the triage review Issue/PR to be discussed at the next triage meeting label Jul 26, 2023
@mattip

mattip commented Jul 26, 2023

Copy link
Copy Markdown
Member

@melissawm @HaoZeke any news here?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@HaoZeke

HaoZeke commented Jul 31, 2023

Copy link
Copy Markdown
Member Author

@melissawm @HaoZeke any news here?

I reworked it within the PR itself (with the force push) I think it should be good to go.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@charris charris added the 09 - Backport-Candidate PRs tagged should be backported label Sep 6, 2023
@charris charris added this to the 1.26.1 release milestone Sep 6, 2023
@charris
charris merged commit 0df1365 into numpy:main Sep 13, 2023
@charris

charris commented Sep 13, 2023

Copy link
Copy Markdown
Member

Thanks Rohit.

HaoZeke reacted with hooray emoji
All reactions
  • 🎉 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@charris charris mentioned this pull request Sep 13, 2023
BUG: Fix data stmt handling for complex values in f2py #24701
Merged
@charris charris removed the 09 - Backport-Candidate PRs tagged should be backported label Sep 13, 2023
@charris charris removed this from the 1.26.1 release milestone Sep 13, 2023
@HaoZeke
HaoZeke deleted the fixDataStmtHandlingF2PY branch September 14, 2023 03:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@mattip mattip mattip left review comments
@melissawm melissawm Awaiting requested review from melissawm

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

00 - Bug component: numpy.f2py

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

BUG: f2py data statement not parsed correctly for arrays

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@HaoZeke @mattip @charris
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.