Skip to content
Merged
Show file tree
Hide file tree
Changes from 16 commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
05f4e26
:sparkles: Developing PerturbationMatrix class
christinahedges Mar 30, 2022
172fbda
:white_check_mark: fixing flake8
christinahedges Mar 30, 2022
fb31d8b
:sparkles: added a 3D matrix
christinahedges Mar 31, 2022
d37a540
:art: fairly good sketch
christinahedges Apr 2, 2022
884f24d
Update src/psfmachine/perturbation.py
christinahedges Apr 5, 2022
18cca59
Update src/psfmachine/perturbation.py
christinahedges Apr 5, 2022
3df9bea
fixing identation and _clean_vectors when segments=True
jorgemarpa Apr 5, 2022
b64b9cc
:zap: faster!
christinahedges Apr 5, 2022
2d55aa1
:art: adding pixel masking
christinahedges Apr 5, 2022
7310ed3
:memo: added docstrings
christinahedges Apr 5, 2022
84a064c
:sparkles: Added PCA method
christinahedges Apr 11, 2022
3da1557
:art: added fbpca explicitly as dependency
christinahedges Apr 11, 2022
1520001
:memo: docs
christinahedges Apr 11, 2022
78633dc
:bug: fixing pca
christinahedges Apr 12, 2022
14babe3
:bug: fix @jorgemarpa bug
christinahedges Apr 12, 2022
9d4a80f
:memo: update docstrings
christinahedges Apr 12, 2022
556317d
Update src/psfmachine/perturbation.py
christinahedges Apr 12, 2022
e97d3f5
:sparkles: now pca has smoothed components
christinahedges Apr 12, 2022
0cbde46
:bug: update pca
christinahedges Apr 12, 2022
a00d69c
:art: merge
christinahedges Apr 12, 2022
18fdc55
:art: flake8
christinahedges Apr 12, 2022
eb9ce3c
:art: no comment block
christinahedges Apr 12, 2022
2efb963
:memo: docstrings
christinahedges Apr 12, 2022
eaa807f
:art: updating sane defaults, adding smooth PCA components
christinahedges Apr 15, 2022
e1bc28e
:art: sane defaults
christinahedges Apr 15, 2022
34a7622
:memo: documentation
christinahedges Apr 18, 2022
ed228ba
:twisted_rightwards_arrows: merging
christinahedges Apr 18, 2022
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
18 changes: 1 addition & 17 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ diskcache = "^5.3.0"
imageio = "^2.9.0"
imageio-ffmpeg = "^0.4.5"
kbackground = "0.1.6"
fbpca = "^1.0"

[tool.poetry.dev-dependencies]
pytest = "^6.1.2"
Expand Down
6 changes: 3 additions & 3 deletions src/psfmachine/machine.py
Original file line number Diff line number Diff line change
Expand Up @@ -887,7 +887,7 @@ def build_time_model(self, plot=False, downsample=False, split_time_model=False)
dy,
n_knots=self.n_time_knots,
radius=self.time_radius,
spacing=self.cartesian_knot_spacing,
knot_spacing_type=self.cartesian_knot_spacing,
)
A2 = sparse.vstack([A_c] * time_binned.shape[0], format="csr")
# Cartesian spline with time dependence
Expand Down Expand Up @@ -1049,7 +1049,7 @@ def plot_time_model(self, segment=0):
dy,
n_knots=self.n_time_knots,
radius=self.time_radius,
spacing=self.cartesian_knot_spacing,
knot_spacing_type=self.cartesian_knot_spacing,
)
# if self.seg_splits.shape[0] == 2 and segment == 0:
# seg_mask = np.ones(time_binned.shape[0], dtype=bool)
Expand Down Expand Up @@ -1576,7 +1576,7 @@ def fit_model(self, fit_va=False):
dy,
n_knots=self.n_time_knots,
radius=self.time_radius,
spacing=self.cartesian_knot_spacing,
knot_spacing_type=self.cartesian_knot_spacing,
)
A_cp3 = sparse.hstack([A_cp, A_cp, A_cp, A_cp], format="csr")

Expand Down
Loading