Skip to content

Move periodogram classes to astropy.timeseries#8591

Merged
bsipocz merged 14 commits intoastropy:masterfrom
astrofrog:timeseries-periodograms
Apr 19, 2019
Merged

Move periodogram classes to astropy.timeseries#8591
bsipocz merged 14 commits intoastropy:masterfrom
astrofrog:timeseries-periodograms

Conversation

@astrofrog
Copy link
Member

@astrofrog astrofrog commented Apr 18, 2019

This is a follow up to #8540. The intent has always been to eventually move the periodogram algorithms to astropy.timeseries once that module existed, so here we go. For now I've only moved the classes, but I plan to make them integrate better with the TimeSeries class. This is going to require a bit more intricate work, so in the interest of making sure that we get the classes moved for 3.2, and to keep things easier to review, I'll do the further integration work in a separate PR. So this PR is ready for review once rebased.

Fixes #8410

@astrofrog astrofrog force-pushed the timeseries-periodograms branch from df1a1d2 to 537fa03 Compare April 18, 2019 10:04
@astrofrog astrofrog changed the title Timeseries periodograms Move periodogram classes to astropy.timeseries Apr 18, 2019
@astrofrog astrofrog added this to the v3.2 milestone Apr 18, 2019
@astrofrog astrofrog marked this pull request as ready for review April 18, 2019 10:59
@astrofrog astrofrog force-pushed the timeseries-periodograms branch from 537fa03 to 21503c1 Compare April 18, 2019 11:00
@codecov
Copy link

codecov bot commented Apr 18, 2019

Codecov Report

Merging #8591 into master will decrease coverage by 0.01%.
The diff coverage is 84.61%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #8591      +/-   ##
==========================================
- Coverage   86.89%   86.88%   -0.02%     
==========================================
  Files         393      396       +3     
  Lines       58653    59590     +937     
  Branches     1064     1238     +174     
==========================================
+ Hits        50969    51774     +805     
- Misses       7065     7143      +78     
- Partials      619      673      +54
Impacted Files Coverage Δ
astropy/timeseries/periodograms/bls/bls.c 85.88% <ø> (ø)
.../periodograms/lombscargle/implementations/utils.py 95.74% <ø> (ø)
astropy/timeseries/periodograms/bls/methods.py 100% <ø> (ø)
...odograms/lombscargle/implementations/scipy_impl.py 81.48% <ø> (ø)
...timeseries/periodograms/lombscargle/_statistics.py 91.3% <ø> (ø)
...es/periodograms/lombscargle/implementations/mle.py 87.8% <ø> (ø)
...iodograms/lombscargle/implementations/slow_impl.py 94.44% <ø> (ø)
...riodograms/lombscargle/implementations/__init__.py 100% <ø> (ø)
...tropy/timeseries/periodograms/lombscargle/utils.py 90% <ø> (ø)
...s/periodograms/lombscargle/implementations/main.py 83.56% <ø> (ø)
... and 23 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bbc1219...2af4ee9. Read the comment docs.

@astrofrog astrofrog force-pushed the timeseries-periodograms branch from 6ead8c0 to 3d135a3 Compare April 18, 2019 15:43
Copy link
Member

@bsipocz bsipocz left a comment

Choose a reason for hiding this comment

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

I've tried to review the new commits that are on top of #8540, but I prefer to have another look once that one is merged and this one is rebased.

astropy.stats
^^^^^^^^^^^^^

- The ``BoxLeastSquares`` and ``LombScargle`` classes have been moved to the
Copy link
Member

Choose a reason for hiding this comment

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

add an entry about the move under astropy.timeseries, too.

Copy link
Member Author

Choose a reason for hiding this comment

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

Done

Copy link
Member

Choose a reason for hiding this comment

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

I can't see it here, I suppose it lost somewhere during rebase.

Copy link
Member

@pllim pllim left a comment

Choose a reason for hiding this comment

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

Overall, looks good. Some minor comments below.

@pllim
Copy link
Member

pllim commented Apr 19, 2019

There is a conflict now, please rebase.

@astrofrog astrofrog force-pushed the timeseries-periodograms branch from 6951e1f to 2af4ee9 Compare April 19, 2019 19:43
astropy.stats
^^^^^^^^^^^^^

- The ``BoxLeastSquares`` and ``LombScargle`` classes have been moved to the
Copy link
Member

Choose a reason for hiding this comment

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

I can't see it here, I suppose it lost somewhere during rebase.

@eteq eteq added zzz 💤 merge-when-ci-passes Do not use: We have auto-merge option now. and removed Ready-for-final-review labels Apr 19, 2019
@astrofrog
Copy link
Member Author

@bsipocz - In the interest of saving CI time, I'll add the changelog entry in #8599 if that's ok?

@pllim
Copy link
Member

pllim commented Apr 19, 2019

(I was waiting for the html-docs to complete and have a look at rendered doc before approving but it is taking forever to run.)

@bsipocz
Copy link
Member

bsipocz commented Apr 19, 2019

@pllim - I suppose having a more thorough docs check after #8599 would be good, too.

@bsipocz
Copy link
Member

bsipocz commented Apr 19, 2019

All green, so I go ahead and merge now.

Thanks @astrofrog!

@bsipocz bsipocz merged commit 6ded61e into astropy:master Apr 19, 2019
eerovaher added a commit to eerovaher/astropy that referenced this pull request Oct 25, 2023
In astropy#8591 classes implementing box least squares and Lomb-Scargle
periodograms were moved from `astropy.stats` to `astropy.timeseries`.
Importing them from `stats` has been deprecated for long enough.
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.

Move periodogram modules stats to timeseries

4 participants