Skip to content

Commit a8041c7

Browse files
roms rust upd (#362)
* roms rust upd * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * version update --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 86c0a41 commit a8041c7

File tree

5 files changed

+10
-3
lines changed

5 files changed

+10
-3
lines changed

light-curve/Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

light-curve/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,5 +56,5 @@ version = "0.7.1"
5656
features = ["serde"]
5757

5858
[dependencies.light-curve-feature]
59-
version = "0.7.0"
59+
version = "0.7.1"
6060
default_features = false

light-curve/src/features.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1793,6 +1793,8 @@ Examples
17931793

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

1796+
evaluator!(Roms, lcf::Roms, StockTransformer::Identity);
1797+
17961798
evaluator!(Skew, lcf::Skew, StockTransformer::Arcsinh);
17971799

17981800
evaluator!(

light-curve/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ fn light_curve(py: Python, m: Bound<PyModule>) -> PyResult<()> {
9595
m.add_class::<f::PercentDifferenceMagnitudePercentile>()?;
9696
m.add_class::<f::Periodogram>()?;
9797
m.add_class::<f::ReducedChi2>()?;
98+
m.add_class::<f::Roms>()?;
9899
m.add_class::<f::Skew>()?;
99100
m.add_class::<f::StandardDeviation>()?;
100101
m.add_class::<f::StetsonK>()?;

light-curve/tests/test_w_bench.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -579,6 +579,10 @@ def naive(self, t, m, sigma):
579579
return np.sum(np.square(m - np.average(m, weights=w)) * w) / (m.size - 1)
580580

581581

582+
class TestRoms(_Test):
583+
name = "Roms"
584+
585+
582586
class TestSkew(_Test):
583587
name = "Skew"
584588

0 commit comments

Comments
 (0)