Editing CoFI core#
Here we provide a mapping table to the parts of code related to each existing feature.
Functionality |
Code file path |
|---|---|
|
src/cofi/base_problem.py |
|
src/cofi/inversion_options.py |
|
src/cofi/inversion.py |
|
src/cofi/inversion.py |
inference tools tree |
src/cofi/tools/__init__.py |
inference tool dispatch function |
src/cofi/inversion.py |
|
src/cofi/tools/base_inference_tool.py |
validation for |
src/cofi/tools/base_inference_tool.py |
Checklist on adding a new set method in BaseProblem
Except for tests, all changes should take place in src/cofi/base_problem.py.
add method
set_something(self, something)add property/method
something(self)add method
something_defined(self) -> booladd
somethingto listBaseProblem.all_componentswrite tests in
tests/test_base_problem.py(“test_non_set”, etc.)