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

Cleaning and formating files in the ICEsat2_SI_tools folder #132

Merged
merged 26 commits into from
Mar 7, 2024

Conversation

kmilo9999
Copy link
Collaborator

No description provided.

@kmilo9999 kmilo9999 requested review from cpaniaguam and hollandjg and removed request for cpaniaguam February 26, 2024 16:55
Copy link
Member

@hollandjg hollandjg left a comment

Choose a reason for hiding this comment

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

Nice! I've got a few comments and suggestions here.

src/icesat2_tracks/ICEsat2_SI_tools/angle_optimizer.py Outdated Show resolved Hide resolved
src/icesat2_tracks/ICEsat2_SI_tools/angle_optimizer.py Outdated Show resolved Hide resolved
src/icesat2_tracks/ICEsat2_SI_tools/angle_optimizer.py Outdated Show resolved Hide resolved
src/icesat2_tracks/ICEsat2_SI_tools/angle_optimizer.py Outdated Show resolved Hide resolved
src/icesat2_tracks/ICEsat2_SI_tools/lanczos.py Outdated Show resolved Hide resolved
src/icesat2_tracks/ICEsat2_SI_tools/spicke_remover.py Outdated Show resolved Hide resolved
src/icesat2_tracks/ICEsat2_SI_tools/spectral_estimates.py Outdated Show resolved Hide resolved
src/icesat2_tracks/ICEsat2_SI_tools/spectral_estimates.py Outdated Show resolved Hide resolved
src/icesat2_tracks/ICEsat2_SI_tools/spectral_estimates.py Outdated Show resolved Hide resolved
Copy link
Member

@cpaniaguam cpaniaguam left a comment

Choose a reason for hiding this comment

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

I added a number of refactorings and suggestions.

src/icesat2_tracks/ICEsat2_SI_tools/convert_GPS_time.py Outdated Show resolved Hide resolved
src/icesat2_tracks/ICEsat2_SI_tools/filter_regrid.py Outdated Show resolved Hide resolved
src/icesat2_tracks/ICEsat2_SI_tools/filter_regrid.py Outdated Show resolved Hide resolved
src/icesat2_tracks/ICEsat2_SI_tools/spectral_estimates.py Outdated Show resolved Hide resolved
src/icesat2_tracks/ICEsat2_SI_tools/spectral_estimates.py Outdated Show resolved Hide resolved
src/icesat2_tracks/ICEsat2_SI_tools/spectral_estimates.py Outdated Show resolved Hide resolved
src/icesat2_tracks/ICEsat2_SI_tools/wave_tools.py Outdated Show resolved Hide resolved
@kmilo9999 kmilo9999 self-assigned this Feb 27, 2024
@kmilo9999 kmilo9999 requested a review from cpaniaguam February 28, 2024 21:51
@kmilo9999
Copy link
Collaborator Author

@cpaniaguam @hollandjg Check my replies on the opened conversations and do a last review.

Copy link
Member

@hollandjg hollandjg left a comment

Choose a reason for hiding this comment

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

Thanks for this! It looks like there are more changes here than just cleaning and formatting – some of the changes to functions look like they need more detailed tests before we can make them.
Is it possible to split this into a PR which does just cleanup, and another (or several) which make functional changes?

@kmilo9999
Copy link
Collaborator Author

@hollandjg I removed the latest changes in spectral_estimates.py. Cleaned and formatted the file. Please re-review.

@kmilo9999 kmilo9999 requested a review from hollandjg March 1, 2024 19:03
hollandjg
hollandjg previously approved these changes Mar 4, 2024
Copy link
Member

@hollandjg hollandjg left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@kmilo9999
Copy link
Collaborator Author

@cpaniaguam one last review on your side?

Comment on lines +126 to +127
"getmem >=1.0, <= 1.0.0",
"astropy >=5.2, <= 6.0.0"
Copy link
Member

Choose a reason for hiding this comment

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

Why were these added? Just curious.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Removing conditional imports to the top of the files make the interpreter loom for those dependencies when running the scripts

src/icesat2_tracks/ICEsat2_SI_tools/angle_optimizer.py Outdated Show resolved Hide resolved
src/icesat2_tracks/ICEsat2_SI_tools/angle_optimizer.py Outdated Show resolved Hide resolved
src/icesat2_tracks/ICEsat2_SI_tools/angle_optimizer.py Outdated Show resolved Hide resolved
src/icesat2_tracks/ICEsat2_SI_tools/angle_optimizer.py Outdated Show resolved Hide resolved
src/icesat2_tracks/ICEsat2_SI_tools/angle_optimizer.py Outdated Show resolved Hide resolved
src/icesat2_tracks/ICEsat2_SI_tools/spectral_estimates.py Outdated Show resolved Hide resolved
src/icesat2_tracks/ICEsat2_SI_tools/spectral_estimates.py Outdated Show resolved Hide resolved
Copy link
Member

@cpaniaguam cpaniaguam left a comment

Choose a reason for hiding this comment

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

Just a couple more easy changes and a suggested issue.

src/icesat2_tracks/ICEsat2_SI_tools/angle_optimizer.py Outdated Show resolved Hide resolved
src/icesat2_tracks/ICEsat2_SI_tools/filter_regrid.py Outdated Show resolved Hide resolved
src/icesat2_tracks/ICEsat2_SI_tools/spectral_estimates.py Outdated Show resolved Hide resolved
src/icesat2_tracks/ICEsat2_SI_tools/spectral_estimates.py Outdated Show resolved Hide resolved
src/icesat2_tracks/ICEsat2_SI_tools/spectral_estimates.py Outdated Show resolved Hide resolved
src/icesat2_tracks/ICEsat2_SI_tools/spectral_estimates.py Outdated Show resolved Hide resolved
src/icesat2_tracks/ICEsat2_SI_tools/spectral_estimates.py Outdated Show resolved Hide resolved
src/icesat2_tracks/ICEsat2_SI_tools/spectral_estimates.py Outdated Show resolved Hide resolved
hollandjg
hollandjg previously approved these changes Mar 7, 2024
Copy link
Member

@hollandjg hollandjg left a comment

Choose a reason for hiding this comment

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

It's a big change, and it looks good to me. Hopefully nothing has gotten through the cracks.

@cpaniaguam cpaniaguam self-requested a review March 7, 2024 17:31
cpaniaguam
cpaniaguam previously approved these changes Mar 7, 2024
Copy link
Member

@cpaniaguam cpaniaguam left a comment

Choose a reason for hiding this comment

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

👍

@kmilo9999
Copy link
Collaborator Author

@cpaniaguam I added few changes requested in old conversations. Some of the doesnt seem to be reflected in their respective conversation. Please re-review and approve if you think is ready.

self.Lpoints = Lpoints
self.ov = int(Lpoints/2) if ov is None else ov #when not defined in create_chunk_boundaries then L/2
self.Lpoints = Lpoints
self.ov = int(Lpoints / 2) if ov is None else ov
Copy link
Member

Choose a reason for hiding this comment

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

I see it!

Copy link
Member

@hollandjg hollandjg left a comment

Choose a reason for hiding this comment

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

Great! Let's merge it!

@kmilo9999 kmilo9999 merged commit fb6fec5 into main Mar 7, 2024
2 checks passed
@kmilo9999 kmilo9999 deleted the clean-files-tools branch March 7, 2024 19:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants