Skip to content

Commit

Permalink
Fixed subcs duplication
Browse files Browse the repository at this point in the history
  • Loading branch information
pupperemeritus committed Oct 23, 2023
1 parent 5599edf commit 6f953d4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions stingray/crossspectrum.py
Original file line number Diff line number Diff line change
Expand Up @@ -2266,9 +2266,10 @@ def _create_crossspectrum_from_result_table(table, force_averaged=False):
cs.unnorm_cs_all = np.array(table.meta["unnorm_subcs"])

for attr, val in table.meta.items():
setattr(cs, attr, val)
setattr(cs.pds1, attr, val)
setattr(cs.pds2, attr, val)
if not attr.endswith("subcs"):
setattr(cs, attr, val)
setattr(cs.pds1, attr, val)
setattr(cs.pds2, attr, val)

cs.err_dist = "poisson"
if cs.variance is not None:
Expand Down

0 comments on commit 6f953d4

Please sign in to comment.