STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
test_csv_to_eng.TestNormalizeCurve Class Reference

Public Member Functions

 test_already_normalized (self)
 test_insert_zero_start (self)
 test_append_zero_end (self)
 test_sorting (self)
 test_duplicate_times_kept_last (self)
 test_rounding (self)
 test_empty_input (self)

Detailed Description

Tests for normalize_curve function.

Definition at line 255 of file test_csv_to_eng.py.

Member Function Documentation

◆ test_already_normalized()

test_csv_to_eng.TestNormalizeCurve.test_already_normalized ( self)
Curve already starts at 0 and ends at 0.

Definition at line 258 of file test_csv_to_eng.py.

◆ test_append_zero_end()

test_csv_to_eng.TestNormalizeCurve.test_append_zero_end ( self)
Append thrust=0 at end if curve doesn't end at 0.

Definition at line 271 of file test_csv_to_eng.py.

◆ test_duplicate_times_kept_last()

test_csv_to_eng.TestNormalizeCurve.test_duplicate_times_kept_last ( self)
Duplicate times should keep the last value.

Definition at line 285 of file test_csv_to_eng.py.

◆ test_empty_input()

test_csv_to_eng.TestNormalizeCurve.test_empty_input ( self)
Empty input should return minimal valid curve.

Definition at line 303 of file test_csv_to_eng.py.

◆ test_insert_zero_start()

test_csv_to_eng.TestNormalizeCurve.test_insert_zero_start ( self)
Insert t=0 if curve doesn't start there.

Definition at line 264 of file test_csv_to_eng.py.

◆ test_rounding()

test_csv_to_eng.TestNormalizeCurve.test_rounding ( self)
Values should be rounded appropriately.

Definition at line 293 of file test_csv_to_eng.py.

◆ test_sorting()

test_csv_to_eng.TestNormalizeCurve.test_sorting ( self)
Unsorted points should be sorted by time.

Definition at line 278 of file test_csv_to_eng.py.


The documentation for this class was generated from the following file: