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

feat: two dimensions phase correction filter #2930

Merged
merged 8 commits into from Mar 6, 2024

Conversation

hamed-musallam
Copy link
Member

No description provided.

@hamed-musallam hamed-musallam linked an issue Feb 26, 2024 that may be closed by this pull request
Copy link

cloudflare-pages bot commented Feb 26, 2024

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: a890c91
Status: ✅  Deploy successful!
Preview URL: https://82d49a14.nmrium.pages.dev
Branch Preview URL: https://2d-phase-correction.nmrium.pages.dev

View logs

@hamed-musallam hamed-musallam force-pushed the 2d-phase-correction branch 2 times, most recently from 032788e to 60986c7 Compare February 27, 2024 14:02
@hamed-musallam hamed-musallam marked this pull request as ready for review February 27, 2024 14:02
chore: update nmr-processing to version 11.11.0

chore: fix prettier
@lpatiny
Copy link
Member

lpatiny commented Feb 29, 2024

I play with it seems to me quite intuitive. 2D phasing is never an easy task. I could be merge now and we can add issues after.

I would prefer a toggle button rather that a drop down menu to select Vertical / Horizontal

You could use
image
and
image

This could be a group button rather than a toggle button so that user sees he can switch.

@lpatiny
Copy link
Member

lpatiny commented Mar 4, 2024

There is an issue because we need to apply on the 2D the phase correction at least before switching between axes.

We could try to apply the 2D phase correction on mouse up (once we finished phasing PH0 and PH1). Same is true when we edit the value directly.

@hamed-musallam hamed-musallam linked an issue Mar 4, 2024 that may be closed by this pull request
@lpatiny
Copy link
Member

lpatiny commented Mar 4, 2024

Seems weird PH0 and PH1 do not change when I switch the direction.

2024-03-04 21 02 28

Also when we switch from axes it the phase applied on the 2D ?

@hamed-musallam
Copy link
Member Author

@lpatiny

When we change the pH values we apply them to the 2D. We debounce the applying on the 2D for 250 ms.

@lpatiny
Copy link
Member

lpatiny commented Mar 5, 2024

Debouncing is a good idea but if redrawing takes a long time it could still be problematic. We will see in the future if it is okay or if we should only recalculate when we release the pressed button on the button PH0 or PH1.

@hamed-musallam hamed-musallam merged commit adb8098 into main Mar 6, 2024
11 checks passed
@hamed-musallam hamed-musallam deleted the 2d-phase-correction branch March 6, 2024 07:08
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.

Improve 2D phase correction by adding traces in both direction complete the 2D phase correction
3 participants