Skip to content

make baseline and density settable for DPpropagator#155

Merged
ewanwm merged 2 commits intomainfrom
feature/DPpropagator-settable-experiment-params
Aug 28, 2025
Merged

make baseline and density settable for DPpropagator#155
ewanwm merged 2 commits intomainfrom
feature/DPpropagator-settable-experiment-params

Conversation

@ewanwm
Copy link
Owner

@ewanwm ewanwm commented Aug 28, 2025

No description provided.

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cpp-linter Review

Used clang-tidy v16.0.6

Click here for the full clang-tidy patch
diff --git a/nuTens/propagator/DP-propagator.hpp b/nuTens/propagator/DP-propagator.hpp
index 6d43330..5551f66 100644
--- a/nuTens/propagator/DP-propagator.hpp
+++ b/nuTens/propagator/DP-propagator.hpp
@@ -149 +149 @@ class DPpropagator : public Propagator
-    [[nodiscard]] Tensor calculateProbs();
+    [[nodiscard]] Tensor calculateProbs() override;

Have any feedback or feature suggestions? Share it here.

@github-actions github-actions bot dismissed their stale review August 28, 2025 20:55

outdated suggestion

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cpp-linter Review

Used clang-tidy v16.0.6

Click here for the full clang-tidy patch
diff --git a/nuTens/propagator/DP-propagator.hpp b/nuTens/propagator/DP-propagator.hpp
index 6d43330..5551f66 100644
--- a/nuTens/propagator/DP-propagator.hpp
+++ b/nuTens/propagator/DP-propagator.hpp
@@ -149 +149 @@ class DPpropagator : public Propagator
-    [[nodiscard]] Tensor calculateProbs();
+    [[nodiscard]] Tensor calculateProbs() override;
diff --git a/python/binding.cpp b/python/binding.cpp
index 4e62dfd..001794d 100644
--- a/python/binding.cpp
+++ b/python/binding.cpp
@@ -439,5 +439,4 @@ void initTesting(py::module &m)
-            std::vector<std::vector<double>> ret = {
-                {probs_returned[0][0], probs_returned[0][1], probs_returned[0][2]},
-                {probs_returned[1][0], probs_returned[1][1], probs_returned[1][2]},
-                {probs_returned[2][0], probs_returned[2][1], probs_returned[2][2]}
-            };
+            std::vector<std::vector<double>> ret =
+                0 = {{probs_returned[0][0], probs_returned[0][1], probs_returned[0][2]},
+                     {probs_returned[1][0], probs_returned[1][1], probs_returned[1][2]},
+                     {probs_returned[2][0], probs_returned[2][1], probs_returned[2][2]}};

Have any feedback or feature suggestions? Share it here.

@codecov-commenter
Copy link

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
nuTens/propagator/DP-propagator.hpp 0.00% 1 Missing ⚠️
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.
Files with missing lines Coverage Δ
nuTens/propagator/DP-propagator.hpp 75.00% <0.00%> (-25.00%) ⬇️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@github-actions
Copy link
Contributor

github-actions bot commented Aug 28, 2025

🐰 Bencher Report

Branchfeature/DPpropagator-settable-experiment-params
Testbedubuntu-latest

⚠️ WARNING: No Threshold found!

Without a Threshold, no Alerts will ever be generated.

Click here to create a new Threshold
For more information, see the Threshold documentation.
To only post results if a Threshold exists, set the --ci-only-thresholds flag.

Click to view all benchmark results
BenchmarkLatencynanoseconds (ns)
Const Density Oscillations/1024/1024📈 view plot
⚠️ NO THRESHOLD
1,859,045,257.00 ns
Const Density Oscillations/1024/1024_cv📈 view plot
⚠️ NO THRESHOLD
0.01 ns
Const Density Oscillations/1024/1024_mean📈 view plot
⚠️ NO THRESHOLD
1,864,990,898.13 ns
Const Density Oscillations/1024/1024_median📈 view plot
⚠️ NO THRESHOLD
1,858,979,250.50 ns
Const Density Oscillations/1024/1024_stddev📈 view plot
⚠️ NO THRESHOLD
15,312,108.75 ns
DP Propagator Const Density Oscillations/1024/1024📈 view plot
⚠️ NO THRESHOLD
829,910,026.00 ns
DP Propagator Const Density Oscillations/1024/1024_cv📈 view plot
⚠️ NO THRESHOLD
0.00 ns
DP Propagator Const Density Oscillations/1024/1024_mean📈 view plot
⚠️ NO THRESHOLD
830,528,251.69 ns
DP Propagator Const Density Oscillations/1024/1024_median📈 view plot
⚠️ NO THRESHOLD
830,113,342.50 ns
DP Propagator Const Density Oscillations/1024/1024_stddev📈 view plot
⚠️ NO THRESHOLD
2,428,354.30 ns
Vacuum Oscillations/1024/1024📈 view plot
⚠️ NO THRESHOLD
397,034,521.00 ns
Vacuum Oscillations/1024/1024_cv📈 view plot
⚠️ NO THRESHOLD
0.01 ns
Vacuum Oscillations/1024/1024_mean📈 view plot
⚠️ NO THRESHOLD
397,217,248.66 ns
Vacuum Oscillations/1024/1024_median📈 view plot
⚠️ NO THRESHOLD
396,769,082.50 ns
Vacuum Oscillations/1024/1024_stddev📈 view plot
⚠️ NO THRESHOLD
3,025,383.78 ns
🐰 View full continuous benchmarking report in Bencher

@ewanwm ewanwm merged commit 001612e into main Aug 28, 2025
6 of 7 checks passed
@ewanwm ewanwm deleted the feature/DPpropagator-settable-experiment-params branch August 28, 2025 21:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants