Skip to content

Code design changes#11

Open
akataba wants to merge 11 commits intomainfrom
code_design_changes
Open

Code design changes#11
akataba wants to merge 11 commits intomainfrom
code_design_changes

Conversation

@akataba
Copy link
Contributor

@akataba akataba commented Mar 4, 2024

This pull request introduces a data class framework for the set_requirements method it thus removes the need to use the arguments of the function to state what the requirements of the subroutine are without actually using the arguments in the body of the method.

@akataba akataba requested a review from pediejo March 4, 2024 23:00
Copy link
Contributor

@pediejo pediejo left a comment

Choose a reason for hiding this comment

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

This PR makes the great suggestion to separate the requirements and the subroutines as two different objects. An unanticipated nice feature is that this will allow us to define requirements for a task just once so that all subsequent subroutines that service that task can make use of the existing requirements dataclass for the task they service. I made just a few small suggestions to streamline the code by making use of the capabilities of the dataclass and also suggested a change that enables the populate_requirements_for_subroutine to work properly for the ABC SubroutineModel.

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.

2 participants