Skip to content

Commit

Permalink
changing small doc string as test
Browse files Browse the repository at this point in the history
  • Loading branch information
robinsteuteville committed Feb 21, 2024
1 parent f016495 commit 4f88c53
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/rust-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,21 @@ on:
jobs:
test:
# might not be needed
if: github.repository == 'nrel/fastsim'
# if: github.repository == 'nrel/fastsim'

runs-on: ubuntu-latest
runs-on: ubuntu-latest

strategy:
fail-fast: true
strategy:
fail-fast: true

if: contains(github.event.pull_request.changed_files, 'rust/')
- name: install rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
if: contains(github.event.pull_request.changed_files, 'rust/')
- name: install rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true

- name: Rust unit tests
run: |
cd rust/ && cargo test
- name: Rust unit tests
run: |
cd rust/ && cargo test
8 changes: 4 additions & 4 deletions rust/fastsim-core/src/cycle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -609,17 +609,17 @@ impl RustCycleCache {
/// * legacy, will likely change to road charging capacity
/// * Another sublist.
pub struct RustCycle {
/// array of time [s]
/// Array of time [s]
#[serde(alias = "cycSecs")]
pub time_s: Array1<f64>,
/// array of speed [m/s]
/// Array of speed [m/s]
#[serde(alias = "cycMps")]
pub mps: Array1<f64>,
/// array of grade [rise/run]
/// Array of grade [rise/run]
#[serde(alias = "cycGrade")]
#[serde(default)]
pub grade: Array1<f64>,
/// array of max possible charge rate from roadway
/// Array of max possible charge rate from roadway
#[serde(alias = "cycRoadType")]
#[serde(default)]
pub road_type: Array1<f64>,
Expand Down

0 comments on commit 4f88c53

Please sign in to comment.