Skip to content

ENH: simple dir parameter in x13 - #8301

Closed
kuritzen wants to merge 3 commits into
statsmodels:mainfrom
kuritzen:main
Closed

kuritzen wants to merge 3 commits into
statsmodels:mainfrom
kuritzen:main

Conversation

@kuritzen

@kuritzen kuritzen commented Jun 8, 2022

Copy link
Copy Markdown
Contributor
  • closes #xxxx
  • tests added / passed.
  • code/documentation is well formatted.
  • properly formatted commit message. See
    NumPy's guide.
Details

Notes:

  • It is essential that you add a test when making code changes. Tests are not
    needed for doc changes.
  • When adding a new function, test values should usually be verified in another package (e.g., R/SAS/Stata).
  • When fixing a bug, you must add a test that would produce the bug in main and
    then show that it is fixed with the new code.
  • New code additions must be well formatted. Changes should pass flake8. If on Linux or OSX, you can
    verify you changes are well formatted by running
    git diff upstream/main -u -- "*.py" | flake8 --diff --isolated
    
    assuming flake8 is installed. This command is also available on Windows
    using the Windows System for Linux once flake8 is installed in the
    local Linux environment. While passing this test is not required, it is good practice and it help
    improve code quality in statsmodels.
  • Docstring additions must render correctly, including escapes and LaTeX.

kuritzen added 3 commits May 16, 2022 13:44
Lets user control where temporary files are created by the program.
@pep8speaks

Copy link
Copy Markdown

Hello @kuritzen! Thanks for opening this PR. We checked the lines you've touched for PEP 8 issues, and found:

Line 388:71: W291 trailing whitespace
Line 389:51: W291 trailing whitespace
Line 390:17: W605 invalid escape sequence '{'
Line 390:27: W605 invalid escape sequence '\A'
Line 390:35: W605 invalid escape sequence '\L'
Line 390:41: W605 invalid escape sequence '\T'
Line 555:71: W291 trailing whitespace
Line 556:51: W291 trailing whitespace
Line 557:17: W605 invalid escape sequence '{'
Line 557:27: W605 invalid escape sequence '\A'
Line 557:35: W605 invalid escape sequence '\L'
Line 557:41: W605 invalid escape sequence '\T'

@bashtage

bashtage commented Jun 8, 2022

Copy link
Copy Markdown
Member

Could you not call it dir? Maybe work_dir or temp_dir?

@bashtage

bashtage commented Jun 8, 2022

Copy link
Copy Markdown
Member

dir is a reserved word in python, so it should usually be avoided.

Comment thread statsmodels/tsa/x13.py
dir : str
The path to where temporary files are created by the function.
If None, the function will create files in
C:\Users\{usrname}\AppData\Local\Temp

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This isn't quite correct. Should be

If None, files are created in the default temporary file location.

This needs to be changed since it works on OSX and Linux, among other OSes.

@bashtage

bashtage commented Jun 8, 2022

Copy link
Copy Markdown
Member

Looks good aside from the docstring and the variable name. Also need to get the PEP-8 issues identified above.

@josef-pkt josef-pkt mentioned this pull request Jun 22, 2022
16 of 20 tasks
@josef-pkt josef-pkt changed the title simple dir parameter ENH: simple dir parameter in x13 Dec 6, 2022
@josef-pkt josef-pkt added the superseded Used for PRs with content that is superseded by a newer PR label Dec 7, 2022
@josef-pkt

Copy link
Copy Markdown
Member

rebased and updated version in #8564

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp-tsa superseded Used for PRs with content that is superseded by a newer PR type-enh

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants