Skip to content

Commit

Permalink
adding other if statements
Browse files Browse the repository at this point in the history
  • Loading branch information
robinsteuteville committed Feb 22, 2024
1 parent 9084baf commit 3dab460
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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/
2 changes: 1 addition & 1 deletion rust/fastsim-core/src/simdrive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 3dab460

Please sign in to comment.