Skip to content

Add tests for calibration module#209

Open
PrasannaPal21 wants to merge 3 commits intoGliderToolsCommunity:masterfrom
PrasannaPal21:add_test_calibration
Open

Add tests for calibration module#209
PrasannaPal21 wants to merge 3 commits intoGliderToolsCommunity:masterfrom
PrasannaPal21:add_test_calibration

Conversation

@PrasannaPal21
Copy link
Copy Markdown

Replaced the dummy test in test_calibration.py with actual tests for all 4 functions in the calibration module.

  1. bottle_matchup - tests for a match, no match(time), no match(depth)
  2. model_metrics - checks output keys and values on the known linear fit
  3. model_figs - checks that it returns an axes without crashing
  4. robust_linear_fit - checks fitted slope, NaN handling for predict and error when all calibration data is NaN

Closes #208
Tests added
Passes pre-commit run --all-files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Adding tests for calibration module

1 participant