-
Notifications
You must be signed in to change notification settings - Fork 65
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 bugs in Cross-contour_transport take 2 #423
Conversation
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
View / edit / reply to this conversation on ReviewNB navidcy commented on 2024-07-11T13:59:29Z space after commas... sorry for being OCD
Also, why do we rename |
View / edit / reply to this conversation on ReviewNB navidcy commented on 2024-07-11T13:59:30Z Wouldn't it be better if we made the unit conversion before plotting and fixing the unit attributes of the data array?
adele-morrison commented on 2024-07-23T23:19:44Z Do you mean skip this plot? We could do that, but I feel like it's useful to show the user what we've got as of this point in the code, so they understand that code after this is just tidying up the x-axis labels. |
View / edit / reply to this conversation on ReviewNB hrsdawson commented on 2024-07-17T01:04:12Z I think this should read "Values south of the contour have been filled with 0 and thus are a different colour", or alternatively "Values north of the contour have been filled with -1000 and thus are a different colour"?
And below: "This is done by looping through the contour points and determining in which directions there are zeros (above contour) and -100 (below contour)." -> "This is done by looping through the contour points and determining in which directions there are zeros (below contour) and -1000 (above contour)" |
View / edit / reply to this conversation on ReviewNB hrsdawson commented on 2024-07-17T01:04:12Z Perhaps this code could be shortened/replaced by:
This returns the following distance indices:
|
I've added some comments and run the code several times. Looks sensible to me. It doesn't work in conda environments older than 23.07 (fails at cell 13 with |
I'd even suggest we avoid using the syntax: "In the case A (B) one goes up (down) and that feels really nice (bad)" which is essentially an "In the case A one goes up and that feels really nice; contrary when B things go down and that's bad." |
Nah, that shouldn't be a problem. That environment is more than a year old anyway... soon it will be deleted. It's good to move on :) |
Why in your arrays above some numbers appear as integers (eg |
This was just a copy-paste error sorry. All were floats. |
No need to apologise! |
Do you mean skip this plot? We could do that, but I feel like it's useful to show the user what we've got as of this point in the code, so they understand that code after this is just tidying up the x-axis labels. View entire conversation on ReviewNB |
@hrsdawson and @navidcy, thanks for the review. I've included all of your suggestions above now. Are one of you happy to approve? |
oh I missed this -- let me run now to see if all is good |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks great!
oh sorry... I run the wrong thing! |
the actual notebook actually runs and looks great! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
This pull request has been mentioned on ACCESS Hive Community Forum. There might be relevant details there: |
Closes #327 and closes #403.
I accidentally closed the other PR on this. This PR includes all of @navidcy's and @anton-seaice's suggestions from the old PR. It still needs a review from someone who can go through and check the code / results are sensible.