Skip to content

REF: make arroots and maroots have consistent return type - #4559

Merged
josef-pkt merged 3 commits into
statsmodels:masterfrom
jbrockmendel:roots
Sep 16, 2018
Merged

josef-pkt merged 3 commits into
statsmodels:masterfrom
jbrockmendel:roots

Conversation

@jbrockmendel

Copy link
Copy Markdown
Contributor

No description provided.

@coveralls

coveralls commented Apr 27, 2018 •

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.01%) to 84.088% when pulling 2a4e723 on jbrockmendel:roots into 2e6ee26 on statsmodels:master.

@jbrockmendel

Copy link
Copy Markdown
Contributor Author

@josef-pkt @ChadFulton this requires non-zero (though I hope non-massive) discussion. What do ya'll think?

@ChadFulton

Copy link
Copy Markdown
Member

I'm in favor of this change, and it is consistent with the SARIMAX behavior. The only question for me is whether there's a need for some kind of deprecation? cycle

@ChadFulton ChadFulton changed the title make arroots and maroots have consistent return type REF: make arroots and maroots have consistent return type Jun 7, 2018
@jbrockmendel

Copy link
Copy Markdown
Contributor Author

@josef-pkt thoughts on deprecation cycle?

Comment thread statsmodels/tsa/tests/test_arima.py Outdated
# regression test; older implementation of arroots returned None
# instead of en empty array
roots = self.arma_00_res.arroots
assert roots.size == 0

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.

numpy's assert_equal

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Changed.

@josef-pkt

Copy link
Copy Markdown
Member

looks fine to me (use numpy asserts for numbers)

summary uses explicit check for k_ar and k_ma, so will not be affected.

IMO, change is not important enough for FutureWarning or deprecation treatment,
Deprecation cycle with option during transition would be difficult to add.

@jbrockmendel

Copy link
Copy Markdown
Contributor Author

Just pushed, addressing comments.

Also updated lint.sh to keep directories together.

@josef-pkt

Copy link
Copy Markdown
Member

all green, merging

@jbrockmendel thank you

@josef-pkt
josef-pkt merged commit b53ba1a into statsmodels:master Sep 16, 2018
@jbrockmendel
jbrockmendel deleted the roots branch September 21, 2018 03:54
@josef-pkt josef-pkt added this to the 0.10 milestone Dec 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants