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

Update for ceci version 2 #131

Merged
merged 5 commits into from
Jul 17, 2024
Merged

Update for ceci version 2 #131

merged 5 commits into from
Jul 17, 2024

Conversation

joezuntz
Copy link
Contributor

This PR updates the constructors of all stage subclasses to work with ceci version 2, in which aliases are specified in the constructor. A similar PR has been opened for each RAIL repo.

The main change is to the the constructors to accept any keywords with **kwargs and pass them to the parent class.

I have also removed any constructors which did not do anything except call the parent class constructor. Since this happens automatically if you omit the constructor, these were redundant.

Finally, in constructors I have changed I have removed hard-coded parent classes in favour of the python3 recommended super() function. If the parent class are changed in the future the constructor will still work.

@joezuntz joezuntz requested a review from eacharles July 11, 2024 13:42
Copy link
Collaborator

@eacharles eacharles left a comment

Choose a reason for hiding this comment

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

This totally rocks! How wonderful, how exciting.

@sschmidt23 sschmidt23 merged commit a15e395 into main Jul 17, 2024
4 checks passed
@sschmidt23 sschmidt23 deleted the ceci2 branch July 17, 2024 08:20
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.

3 participants