Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 0 additions & 40 deletions .github/workflows/run-templates.yml

This file was deleted.

74 changes: 0 additions & 74 deletions .github/workflows/test-scripts.yml

This file was deleted.

76 changes: 0 additions & 76 deletions api/index.py

This file was deleted.

1 change: 0 additions & 1 deletion docs_openhtf/attachments/by_path/data/sample_file.txt

This file was deleted.

20 changes: 0 additions & 20 deletions docs_openhtf/attachments/by_path/main.py

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,43 @@ def voltage_value():
return passed, value_measured, "V", 10.0, 12.0


def voltage_sampling_test():
"""
Multi-dimensional voltage sampling test.
Samples 100 voltage measurements over time.
Returns: (passed, measurements, units, limit_low, limit_high)
where measurements is a list of (timestamp, voltage) tuples
"""
passed_prob = 0.98
num_samples = 100
limit_low = 10.0
limit_high = 12.0

measurements = []
all_passed = True

# Simulate voltage measurements over time
for i in range(num_samples):
timestamp = i / num_samples # Time in seconds (0 to 0.99)

# Determine if this sample should pass
sample_passed = simulate_test_result(passed_prob)

if sample_passed:
voltage = round(random.uniform(limit_low, limit_high), 2)
else:
voltage = round(random.uniform(8.0, 9.5), 2)
all_passed = False

measurements.append((timestamp, voltage))

# Return multi-dimensional measurement
# Format: (passed, value_measured, unit, limit_low, limit_high)
# For multi-dimensional, value_measured is the list of tuples
# and unit should be a list of units for each dimension
return all_passed, measurements, ["s", "V"], limit_low, limit_high


def internal_resistance():
passed = simulate_test_result(0.98)
value_measured = (
Expand Down Expand Up @@ -349,10 +386,13 @@ def execute_procedures(end):
if not passed_cell:
continue

# Execute Assembly Tests
# Execute Assembly Tests with voltage sampling
tests_assembly = [
(battery_connection, timedelta(seconds=0.1)),
(voltage_value, timedelta(seconds=1)),
(
voltage_sampling_test,
timedelta(seconds=10),
), # New multi-dimensional test
(internal_resistance, timedelta(seconds=1)),
(thermal_runaway_detection, timedelta(seconds=2)),
(state_of_health, timedelta(seconds=2)),
Expand Down
33 changes: 0 additions & 33 deletions qa/client/create_run/basic/main.py

This file was deleted.

25 changes: 0 additions & 25 deletions qa/client/create_run/fpy/main.py

This file was deleted.

23 changes: 0 additions & 23 deletions qa/client/create_run/multiple_sub_units/main.py

This file was deleted.

Loading