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

Gauss-Newton solving visualization #67

Merged
merged 3 commits into from
Oct 3, 2022

Conversation

ChabaneAmaury
Copy link
Contributor

I added a small bit of code to the Gauss-Newton solving function to enable the visualization of the process in real time. There is also a demo in the example, and I made sure not to erase the original code. The function is backward-compatible as it is optionnal to enable it, and only take a flag to be put to True.

I thought it would be nice to be implemented, since I use it personnally during debugging and solving (makes the solving process a bit less boring and annoying to look at for very long solving times).

@liubenyuan liubenyuan merged commit d79ca72 into eitcom:master Oct 3, 2022
@liubenyuan
Copy link
Collaborator

I am not familiar with this generator syntax. I think the comment in the example might be moved to avoid black formatting, i.e.,

plt.show(
    block=True
)  # Very important when using the generator version, otherwise the program exits automatically

changed with

# Very important when using the generator version, otherwise the program exits automatically
plt.show(block=True)

Also withe the colorbar.remove() lines above.

ChabaneAmaury added a commit to ChabaneAmaury/pyEIT that referenced this pull request Oct 3, 2022
Add Gauss-Newton generator implementation and update the example to include both the generator and non-generator version of the gauss-newton.
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.

2 participants