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

MainRecipe.global_consumption_calculation missing first parameter "self" #35

Closed
brews opened this issue Sep 15, 2022 · 3 comments · Fixed by #43
Closed

MainRecipe.global_consumption_calculation missing first parameter "self" #35

brews opened this issue Sep 15, 2022 · 3 comments · Fixed by #43
Assignees
Labels
bug Something isn't working

Comments

@brews
Copy link
Member

brews commented Sep 15, 2022

MainRecipe.global_consumption_calculation() looks like it should have self as its first argument but it's first arg is "disc_type", without self. I'm not sure what's the intent here.

def global_consumption_calculation(disc_type):

@brews brews added bug Something isn't working help wanted Extra attention is needed labels Sep 15, 2022
@brews
Copy link
Member Author

brews commented Sep 15, 2022

Yeah, it looks like self should be there, given how args are later passed in to the method here

array_pc = self.global_consumption_calculation(

This is a bug.

@brews brews self-assigned this Sep 16, 2022
@brews brews removed the help wanted Extra attention is needed label Sep 16, 2022
@brews brews closed this as completed in #43 Sep 16, 2022
@kemccusker
Copy link
Member

@brews how did that code run without this fix? That's confusing.

@brews
Copy link
Member Author

brews commented Sep 16, 2022

@kemccusker In this case, it was an abstract method — like a placeholder outlining things to overload later — it didn't actually have code to run itself. It was just signaling the intent inconsistently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants