Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 2 additions & 2 deletions light-curve/Cargo.lock

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

2 changes: 1 addition & 1 deletion light-curve/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,5 @@ version = "0.7.1"
features = ["serde"]

[dependencies.light-curve-feature]
version = "0.7.0"
version = "0.7.1"
default_features = false
2 changes: 2 additions & 0 deletions light-curve/src/features.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1793,6 +1793,8 @@ Examples

evaluator!(ReducedChi2, lcf::ReducedChi2, StockTransformer::Ln1p);

evaluator!(Roms, lcf::Roms, StockTransformer::Identity);

evaluator!(Skew, lcf::Skew, StockTransformer::Arcsinh);

evaluator!(
Expand Down
1 change: 1 addition & 0 deletions light-curve/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ fn light_curve(py: Python, m: Bound<PyModule>) -> PyResult<()> {
m.add_class::<f::PercentDifferenceMagnitudePercentile>()?;
m.add_class::<f::Periodogram>()?;
m.add_class::<f::ReducedChi2>()?;
m.add_class::<f::Roms>()?;
m.add_class::<f::Skew>()?;
m.add_class::<f::StandardDeviation>()?;
m.add_class::<f::StetsonK>()?;
Expand Down
4 changes: 4 additions & 0 deletions light-curve/tests/test_w_bench.py
Original file line number Diff line number Diff line change
Expand Up @@ -579,6 +579,10 @@ def naive(self, t, m, sigma):
return np.sum(np.square(m - np.average(m, weights=w)) * w) / (m.size - 1)


class TestRoms(_Test):
name = "Roms"


class TestSkew(_Test):
name = "Skew"

Expand Down