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

Fix initial file read #579

Merged
merged 1 commit into from
Jan 31, 2024
Merged

Fix initial file read #579

merged 1 commit into from
Jan 31, 2024

Conversation

LenkaNovak
Copy link
Collaborator

@LenkaNovak LenkaNovak commented Jan 29, 2024

closes #580


  • I have read and checked the items on the review checklist.

@LenkaNovak LenkaNovak marked this pull request as ready for review January 30, 2024 03:52
Copy link
Member

@juliasloan25 juliasloan25 left a comment

Choose a reason for hiding this comment

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

I left a few comments! This piece of the code has always been a bit confusing to me so I want to make sure I totally understand the changes and that the tests are comprehensive before we merge

src/BCReader.jl Outdated Show resolved Hide resolved
src/BCReader.jl Outdated Show resolved Hide resolved
src/BCReader.jl Outdated Show resolved Hide resolved
src/BCReader.jl Outdated Show resolved Hide resolved
src/BCReader.jl Outdated Show resolved Hide resolved
test/bcreader_tests.jl Outdated Show resolved Hide resolved
test/bcreader_tests.jl Outdated Show resolved Hide resolved
test/mpi_tests/bcreader_mpi_tests.jl Outdated Show resolved Hide resolved
@juliasloan25
Copy link
Member

Btw, our macOS github actions are failing right now because of a bug introduced by Plots.jl v1.40.0. There's an issue open in their repo about this here. Maybe for now we can pin to v1.39 and update it later

@LenkaNovak
Copy link
Collaborator Author

Btw, our macOS github actions are failing right now because of a bug introduced by Plots.jl v1.40.0. There's an issue open in their repo about this here. Maybe for now we can pin to v1.39 and update it later

Sounds good, nice catch! 🚀 Thank you for the review!

@szy21
Copy link
Member

szy21 commented Jan 30, 2024

I don't think I understand the logic of file reader enough, so maybe I can just ask you later. No need to wait for that to merge this PR though. Maybe it would be helpful to add some examples in the code comment, e.g.

# case 1: date is before the first date in the file, e.g. date: 19790210, file:19790215-19790315

(I'm not sure if this is exactly correct, but something like this)

src/BCReader.jl Outdated Show resolved Hide resolved
src/BCReader.jl Outdated Show resolved Hide resolved
@juliasloan25
Copy link
Member

Thank you for addressing the review comments, it's a lot more clear now! I like how you broke up the cases some more :) I had a few more questions/comments still

Project.toml Outdated Show resolved Hide resolved
fix bc, clarify test

fix bc, clarify test

fix comments

rev + split init cases

rev2

rev3
@LenkaNovak LenkaNovak merged commit e9073ce into main Jan 31, 2024
9 checks passed
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.

Fix BCReader
3 participants