Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow for custom misfit functions #8

Open
larsgeb opened this issue Jun 27, 2020 · 0 comments
Open

Allow for custom misfit functions #8

larsgeb opened this issue Jun 27, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request pybind-enhancement An enhancement of the code that must likely be done on the Python/C++ interface.
Milestone

Comments

@larsgeb
Copy link
Owner

larsgeb commented Jun 27, 2020

I want to include a routine on the Python side that allows for custom misfit functions and adjoint sources. This can be easily facilitated by using

.def("get_synthetic_data", &fdModelExtended::get_synthetic_data)
to get the forward result and writing a new interface to set the adjoint sources. These should override the fdModel.calculate_l2_misfit and fdModel.calculate_l2_adjoint_sources methods, possibly aliasing that first to something more general, i.e. calculate_misfit.

@larsgeb larsgeb added the enhancement New feature or request label Jun 27, 2020
@larsgeb larsgeb added this to the 0.2.0 milestone Jun 27, 2020
@larsgeb larsgeb self-assigned this Jun 27, 2020
@larsgeb larsgeb added the pybind-enhancement An enhancement of the code that must likely be done on the Python/C++ interface. label Jun 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request pybind-enhancement An enhancement of the code that must likely be done on the Python/C++ interface.
Projects
None yet
Development

No branches or pull requests

1 participant