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

add simple tests to TV denoise implementation #8

Merged
merged 25 commits into from
Aug 23, 2024

Conversation

tjlane
Copy link
Collaborator

@tjlane tjlane commented Aug 12, 2024

This PR is effectively a re-write of all the code needed to do single-pass TV denoising. It is a mega-PR, also implementing CI (testing, lint/formatting, type-checking).

Functionality not represented:

  • dataset-to-dataset scaling
  • iterative TV

@tjlane tjlane requested a review from alisiafadini August 12, 2024 10:17
@tjlane tjlane self-assigned this Aug 12, 2024
@tjlane tjlane marked this pull request as draft August 12, 2024 10:18
@alisiafadini alisiafadini marked this pull request as ready for review August 21, 2024 10:14
test/unit/test_tv.py Outdated Show resolved Hide resolved
meteor/tv.py Outdated Show resolved Hide resolved
meteor/tv.py Outdated Show resolved Hide resolved
meteor/tv.py Outdated Show resolved Hide resolved
test/conftest.py Outdated Show resolved Hide resolved
test/conftest.py Outdated Show resolved Hide resolved
test/unit/test_validate.py Outdated Show resolved Hide resolved
test/unit/test_utils.py Outdated Show resolved Hide resolved
test/unit/test_utils.py Outdated Show resolved Hide resolved
meteor/utils.py Outdated Show resolved Hide resolved
test/unit/test_utils.py Show resolved Hide resolved
test/unit/test_utils.py Show resolved Hide resolved
test/unit/test_utils.py Outdated Show resolved Hide resolved
test/unit/test_tv.py Outdated Show resolved Hide resolved
test/unit/test_tv.py Outdated Show resolved Hide resolved
final_map_coefficients = compute_coefficients_from_map(
ccp4_map=final_map_as_ccp4,
high_resolution_limit=dmin,
amplitude_label=difference_map_amplitude_column,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

amplitude/phase labels are the same for input and for output. Confusing. I think there should be an indication that they are new/denoised

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's discuss this one, I think I disagree

@tjlane
Copy link
Collaborator Author

tjlane commented Aug 22, 2024

Pending a final review, I think we should merge this and then keep going.

To do after merge:

  • much stronger testing of implemented TV code
  • think more carefully about sampling during TV denoising
  • battle test, time golden section method

@alisiafadini alisiafadini merged commit 3840ca7 into meteor_v2 Aug 23, 2024
3 checks passed
@alisiafadini alisiafadini deleted the tjlane/tv-test branch August 23, 2024 21:36
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