This repository was archived by the owner on Mar 23, 2024. It is now read-only.
This repository was archived by the owner on Mar 23, 2024. It is now read-only.
Lookup Table Class #20
Closed
Description
Purpose
The purpose of the lookup table is to take a table of
Description
The task is to create a lookup table class LUT
. Create a file named lut.py
in the controller/common
directory and write the class there.
Inputs:
- 2D array of
$(x,y)$ mappings for interpolation - The interpolation method
-
linear
for linear interpolation -
spline
for spline interpolation
-
Class Functionality:
- The
LUT
class should implement a method to perform interpolation. - Add any other functionality you think might be useful
Testing:
- Write your unit tests in
tests/unit/common/test_lut.py
. See the boat simulator tests for examples on how to implement tests with pytest.
Resources
- This scipy resource covers different functions that can be used for each interpolation method
- Docs site tips for testing
- Pytest getting started guide
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Done