diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 7d5a97ca..87934df4 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -36,11 +36,13 @@ jobs: - name: Rust unit tests if: ${{ github.repository == 'nrel/fastsim' }} + if: ${{ contains(github.event.pull_request.changed_files, 'rust/') }} run: | cd rust/ && cargo test - name: Python unit tests if: ${{ github.repository == 'nrel/fastsim' }} + if: ${{ contains(github.event.pull_request.changed_files, 'python/') || contains(github.event.pull_request.changed_files, 'rust/') }} run: | pip install -e ".[dev]" && pytest -v python/fastsim/tests/ pytest -v python/fastsim/demos/ \ No newline at end of file diff --git a/rust/fastsim-core/src/simdrive.rs b/rust/fastsim-core/src/simdrive.rs index b5aac40e..c37b1f8a 100644 --- a/rust/fastsim-core/src/simdrive.rs +++ b/rust/fastsim-core/src/simdrive.rs @@ -20,7 +20,7 @@ pub mod simdrive_iter; /// Struct containing time trace data pub struct RustSimDriveParams { pub favor_grade_accuracy: bool, - pub missed_trace_correction: bool, // if true, missed trace correction is active, default = false + pub missed_trace_correction: bool, // If true, missed trace correction is active, default = false pub max_time_dilation: f64, pub min_time_dilation: f64, pub time_dilation_tol: f64,