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

Apply overrides for data_input_dict in Node #91

Merged
merged 26 commits into from
Oct 10, 2024
Merged

Conversation

liuly12
Copy link
Collaborator

@liuly12 liuly12 commented Mar 18, 2024

Please note these changes do no apply to Surface and its superclasses as they are based on the DecayTank, which does not have data_input_dict attribute. The overrides for data_input_dict in Surface are addressed in issue #76.

@liuly12 liuly12 linked an issue Mar 18, 2024 that may be closed by this pull request
@liuly12 liuly12 requested a review from barneydobson March 18, 2024 11:50
@liuly12 liuly12 self-assigned this Mar 18, 2024
Copy link
Collaborator

@barneydobson barneydobson left a comment

Choose a reason for hiding this comment

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

Couple points here - if you're happy with my suggestions please just double check the tests still run and there's no typos before merging

@liuly12 liuly12 requested a review from dalonsoa April 10, 2024 09:13
Copy link
Collaborator

@barneydobson barneydobson left a comment

Choose a reason for hiding this comment

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

fixed the load error I think

liuly12 and others added 3 commits July 31, 2024 07:38
Copy link
Collaborator

@dalonsoa dalonsoa left a comment

Choose a reason for hiding this comment

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

A couple of areas of improvement.

@liuly12 liuly12 marked this pull request as ready for review October 2, 2024 16:29
Copy link
Collaborator

@dalonsoa dalonsoa left a comment

Choose a reason for hiding this comment

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

This looks ok, but it needs a couple of tweaks and extra tests.

@@ -417,6 +419,27 @@ def test_data_read(self):

self.assertEqual(15, node.get_data_input("temperature"))

def test_data_overrides(self):
Copy link
Collaborator

Choose a reason for hiding this comment

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

This only test the first branch of the conditional statement. You need another test for the case of not content and another one for the else case, which is an error.

Copy link
Collaborator Author

@liuly12 liuly12 Oct 4, 2024

Choose a reason for hiding this comment

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

Added commit 91f198d

liuly12 and others added 2 commits October 4, 2024 09:32
@liuly12 liuly12 requested a review from dalonsoa October 9, 2024 10:34
Copy link
Collaborator

@dalonsoa dalonsoa left a comment

Choose a reason for hiding this comment

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

LGTM!

@liuly12 liuly12 merged commit d3e8dd3 into main Oct 10, 2024
21 checks passed
@liuly12 liuly12 deleted the data_input_dict-overrides branch October 10, 2024 09:36
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.

data_input_dict overrides
3 participants