Plotting#54
Merged
Merged
Conversation
There was a problem hiding this comment.
Copilot reviewed 6 out of 10 changed files in this pull request and generated no suggestions.
Files not reviewed (4)
- bin_data.dat: Language not supported
- all_bin_scenario.py: Evaluated as low risk
- src/hisp/init.py: Evaluated as low risk
- src/hisp/festim_models/mb_model.py: Evaluated as low risk
Comments skipped due to low confidence (6)
test/test_bin.py:4
- The import statement includes FWBin, which is a valid addition for the new tests.
from hisp.bin import FWBin3Subs, FWBin2Subs, DivBin, FWBin, BinCollection, Reactor
src/hisp/bin.py:51
- The calculation for 'low_wetted' and 'high_wetted' modes might cause a division by zero error if 'self.low_wetted_area' or 'self.high_wetted_area' is zero. Add a check to ensure these values are not zero before performing the division.
def wetted_frac(self):
src/hisp/bin.py:73
- Ensure that 'start_point' and 'end_point' are correctly initialized before calculating the length. Add a check to verify these properties are not None.
def length(self) -> float:
make_iter_bins.py:145
- Ensure that the columns 'R_Coord' and 'Z_Coord' exist in the 'data' DataFrame to avoid a KeyError.
bin.start_point = (data.loc[bin.index]["R_Coord"], data.loc[bin.index]["Z_Coord"])
make_iter_bins.py:150
- Confirm that the fallback to 'bin.index = 0' in case of a ValueError is the intended behavior.
next_bin = my_reactor.get_bin(bin.index + 1)
make_iter_bins.py:156
- Ensure that 'FW_bins' and 'Div_bins' are defined and populated correctly before this assertion.
assert len(data) == len(FW_bins.bins) + len(Div_bins.bins)
Collaborator
Author
RemDelaporteMathurin
left a comment
There was a problem hiding this comment.
Reviewed this with @kaelyndunnell in person. Merging now
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Needs #55