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

Generalized lightcurves #754

Merged
merged 96 commits into from
Dec 15, 2023
Merged
Show file tree
Hide file tree
Changes from 79 commits
Commits
Show all changes
96 commits
Select commit Hold shift + click to select a range
f7b5437
Make timeseries more general-purpose, start moving stuff from Lightcu…
matteobachetti Sep 14, 2023
b51274b
Implementing and generalizing most operations
matteobachetti Sep 15, 2023
fb59cdc
Add internal array attrs
matteobachetti Sep 15, 2023
2166231
Adapt Lightcurve
matteobachetti Sep 15, 2023
56289f3
Add changelog
matteobachetti Sep 15, 2023
80cd312
Add management of timeseries
matteobachetti Sep 15, 2023
a8d161b
Fix what is an array attr and what is not
matteobachetti Sep 15, 2023
dd6a4c6
Fix save_all option
matteobachetti Sep 18, 2023
d821889
Fix bug with unnamed dimensions in xarray export
matteobachetti Sep 18, 2023
584cfaa
Make multi-dimensional array_attrs work with pandas and xarray roundtrip
matteobachetti Sep 18, 2023
f74fcab
Fix docstrings
matteobachetti Sep 18, 2023
471910d
Add sub, add, __iadd__, __sub__ methods
matteobachetti Sep 18, 2023
04476a8
Add tests for the sub, add, __iadd__, __sub__ methods
matteobachetti Sep 18, 2023
9d79184
Formatting fixes
matteobachetti Sep 19, 2023
ed8e024
Test and fix internal array attributes
matteobachetti Sep 19, 2023
2a41745
Fix and test comparisons
matteobachetti Sep 19, 2023
6cf75ed
Fix inconsistent behavior in apply_mask
matteobachetti Sep 19, 2023
8878904
Be very careful with lower case attributes
matteobachetti Sep 19, 2023
2ffff55
More test cases, and more informative warnings when info is lost
matteobachetti Sep 19, 2023
ff821d6
Fix formatting [docs only]
matteobachetti Sep 19, 2023
824fd52
Introduce to_timeseries method in event list
matteobachetti Sep 19, 2023
de0c8dc
Try to make write more robust to float128 errors in FITS
matteobachetti Sep 19, 2023
f818e7c
Allow to change mjdref and time shift in place; fix GTI modification …
matteobachetti Sep 20, 2023
160005c
Test invalid instantiation of time series
matteobachetti Sep 20, 2023
5414245
Fix more corner cases when dealing with attributes
matteobachetti Sep 20, 2023
b696fcc
Fix and test initialization of lightcurve time to None
matteobachetti Sep 20, 2023
152ca2e
test that make_1d_arrays_into_nd also works for 1-d arrays
matteobachetti Sep 20, 2023
d69c9b4
Add dt information to timeseries
matteobachetti Sep 20, 2023
4801f54
Fix call to timeseries initialization, and test
matteobachetti Sep 20, 2023
122d81d
Complete cross spectrum and power spectrum acceptance of time series
matteobachetti Sep 20, 2023
3c0900d
Test without giving the light curve gti explicitly
matteobachetti Sep 20, 2023
4af542f
Add function to test for complex in array
matteobachetti Sep 25, 2023
115a97b
Speedup array creation
matteobachetti Sep 25, 2023
dabf105
Fix rage/ranges call
matteobachetti Sep 25, 2023
ba21a83
Make more robust for numba's picky type selection
matteobachetti Sep 26, 2023
c66eec8
Fix from_lc when counts are negative
matteobachetti Sep 28, 2023
7803193
Fix test of lomb-scargle periodogram with wrong comparison
matteobachetti Sep 28, 2023
547782a
Add functions to make nd arrays into lists of single arrays
matteobachetti Oct 6, 2023
b343e01
Better docstrings in _can_save_etcetera
matteobachetti Oct 9, 2023
266466f
Add docs to helper functions [docs only]
matteobachetti Oct 9, 2023
cccaaf3
Import stuff from base.py
matteobachetti Oct 17, 2023
771829c
Cleanup
matteobachetti Oct 17, 2023
4949bd0
Move some operations to stingraytimeseries
matteobachetti Oct 17, 2023
995ae5d
Fix isinstance property test
matteobachetti Oct 17, 2023
8a24693
Fix workings of meta, internal, and array attributes
matteobachetti Oct 17, 2023
a23159d
Fix issues when roundtripping with internal array attrs
matteobachetti Oct 17, 2023
2e4fb4f
Fix case with strange objects
matteobachetti Oct 17, 2023
003f694
Cleanup and concatenate internal array attributes
matteobachetti Oct 17, 2023
e72f3c5
Further rebin fixes
matteobachetti Oct 17, 2023
1d23d07
Tests for truncate and rebin
matteobachetti Oct 17, 2023
9021d77
Fix plotting
matteobachetti Oct 17, 2023
e94d6a3
Fix plotting tests
matteobachetti Oct 17, 2023
a6728b2
Add sort test; add gti plotting to tests
matteobachetti Oct 18, 2023
9d76543
Move more functionality to base, and test properly
matteobachetti Oct 18, 2023
5d32a8d
Better description of data attributes [docs only]
matteobachetti Oct 18, 2023
6af5f61
Fix GTI behavior, simplify meta_attrs
matteobachetti Oct 18, 2023
fdbd9be
Use more of the StingrayTimeseries inner workings
matteobachetti Oct 18, 2023
86bcb35
Fix docstring [docs only]
matteobachetti Oct 18, 2023
387281c
Fix filters; use apply_mask from TimeSeries; test
matteobachetti Oct 18, 2023
4cee91a
Fix error from size of None time
matteobachetti Oct 18, 2023
63867b4
Fix docstring,really
matteobachetti Oct 18, 2023
dde6c39
Fix concatenate for mjdref difference; tests
matteobachetti Oct 18, 2023
614cc67
Define join, _join_timeseries, concatenate methods
matteobachetti Oct 18, 2023
aae0b9c
Use join, _join_timeseries, concatenate methods when possible
matteobachetti Oct 18, 2023
864dba9
No need for deprecations
matteobachetti Oct 18, 2023
10bc6b0
Make the ncounts attribute a property
matteobachetti Oct 19, 2023
403c655
Pep8 fixes
matteobachetti Oct 19, 2023
86d2fb0
Fix issues when ignoring meta. Test properly
matteobachetti Oct 19, 2023
ef5ed27
Add description [docs only]
matteobachetti Oct 19, 2023
49084c3
Call the gti_treatment strategy
matteobachetti Oct 19, 2023
381195b
Fix docstrings
matteobachetti Oct 26, 2023
df128e4
Fix more docstrings
matteobachetti Oct 26, 2023
d6546d0
Fix definition of mjdref as a float, not int 0
matteobachetti Oct 26, 2023
a1e27c9
Warn when GTIs of data being summed are not the same
matteobachetti Oct 27, 2023
f4c9f9a
Add tests
matteobachetti Oct 27, 2023
63a219b
Fix issues when using irregular binning in rebin_data
matteobachetti Oct 27, 2023
591a8dc
Eliminate warnings from docstrings
matteobachetti Oct 27, 2023
2644c5b
Add function to pretty print
matteobachetti Nov 27, 2023
8524dd7
Make warning on Windows actually useful
matteobachetti Nov 27, 2023
3c51af4
Move _can_save_longdouble and _can_serialize_meta to io
matteobachetti Dec 14, 2023
ac2f0c9
Move sqsum to utils
matteobachetti Dec 14, 2023
0c6d26d
Add more info to docstrings
matteobachetti Dec 14, 2023
f611d35
make __repr__ more useful
matteobachetti Dec 14, 2023
d9e0a5f
Add docs for no_longdouble
matteobachetti Dec 14, 2023
6886212
Fix docstrings
matteobachetti Dec 14, 2023
062d54b
Fix docstrings
matteobachetti Dec 14, 2023
9a82b97
Move properties before methods
matteobachetti Dec 14, 2023
001b2d9
Fix moar docstrings
matteobachetti Dec 14, 2023
a4e90e6
Add docstrings; move int_sum_non_zero to utils
matteobachetti Dec 14, 2023
f12005c
Fix assertion in test
matteobachetti Dec 14, 2023
27b1187
Add docstrings to functions converting to table or timeseries
matteobachetti Dec 14, 2023
6d14d12
Rename to_timeseries method
matteobachetti Dec 14, 2023
7daccab
changed 'check_size' to 'validate_format'
matteobachetti Dec 14, 2023
454a608
Update notebooks
matteobachetti Dec 15, 2023
80b13d0
Update docs
matteobachetti Dec 15, 2023
29cf3a0
Update docs
matteobachetti Dec 15, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/changes/754.feature.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Make StingrayTimeseries into a generalized light curve, with a less strict naming but implementing much of the underlying computing useful for Lightcurve as well.
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ filterwarnings =
ignore:.*HIERARCH card will be created.*:
ignore:.*FigureCanvasAgg is non-interactive.*:UserWarning
ignore:.*jax.* deprecated:DeprecationWarning:
ignore:.*Converting to lower precision.*:UserWarning

;addopts = --disable-warnings

Expand Down
1 change: 1 addition & 0 deletions stingray/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

# For egg_info test builds to pass, put package imports here.
if not _ASTROPY_SETUP_:
from stingray.base import *
from stingray.events import *
from stingray.lightcurve import *
from stingray.utils import *
Expand Down
Loading