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

ENH: Add overwrite argument for odr.ODR() and its test. #12204

Merged
merged 5 commits into from Jul 18, 2020

Conversation

AtsushiSakai
Copy link
Member

@AtsushiSakai AtsushiSakai commented May 24, 2020

Reference issue

fix #1892

What does this implement/fix?

add overwrite optional argument for odr.ODR() to prevent file exist error and its test.

@AtsushiSakai AtsushiSakai changed the title add overwrite argument for odr.ODR() and its test. ENH: Add overwrite argument for odr.ODR() and its test. May 24, 2020
@AtsushiSakai AtsushiSakai added enhancement A new feature or improvement scipy.odr labels May 24, 2020
Copy link
Member

@rgommers rgommers left a comment

Choose a reason for hiding this comment

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

Thanks @AtsushiSakai. I think adding an overwrite keyword here is fine as a solution. Overall this looks good, just a comment on making the test more robust.

scipy/odr/odrpack.py Outdated Show resolved Hide resolved
scipy/odr/tests/test_odr.py Outdated Show resolved Hide resolved
@AtsushiSakai AtsushiSakai marked this pull request as draft July 18, 2020 08:15
@AtsushiSakai
Copy link
Member Author

I'm sorry, CI is broken. Give me time to fix it.

@AtsushiSakai AtsushiSakai marked this pull request as ready for review July 18, 2020 12:04
Copy link
Member

@rgommers rgommers left a comment

Choose a reason for hiding this comment

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

LGTM now, in it goes. Thanks @AtsushiSakai

@rgommers rgommers merged commit 99fb387 into scipy:master Jul 18, 2020
@rgommers rgommers added this to the 1.6.0 milestone Jul 18, 2020
@AtsushiSakai AtsushiSakai deleted the issue_1367 branch July 18, 2020 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement A new feature or improvement scipy.odr
Projects
None yet
Development

Successfully merging this pull request may close these issues.

using rptfile= with an existing file causes a Fortran runtime error (Trac #1367)
2 participants