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

Bnb/dev #108

Merged
merged 21 commits into from
Nov 12, 2022
Merged

Bnb/dev #108

merged 21 commits into from
Nov 12, 2022

Conversation

bnb32
Copy link
Collaborator

@bnb32 bnb32 commented Nov 7, 2022

Misc cleaning. Discussed changes to qa utilities.

self.preflight()

@property
def worker_attrs(self):
Copy link
Member

Choose a reason for hiding this comment

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

This seems like a bad use of a property. Properties enable encapsulated compute. Whats the reason to have a hard-coded property value?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah no reason. I guess better as a method?

Copy link
Member

Choose a reason for hiding this comment

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

No no my point was just make it an attribute! self._protected attribute if you don't want it messed with. Doesnt make sense to have any sort of dynamic code return a hard-coded value.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ah ok. I made it a property because its abstracted in InputMixIn and defined in both forward pass and data handling. I added an underscore :)

Copy link
Member

Choose a reason for hiding this comment

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

Lol why is it a property anywhere though??? Why wouldn't we just set self._worker_attrs = [...] in all of the init's? Hardcoded properties don't make sense - abstracted upstream or not.

sup3r/preprocessing/data_handling.py Outdated Show resolved Hide resolved
@bnb32 bnb32 merged commit 71042f8 into main Nov 12, 2022
@bnb32 bnb32 deleted the bnb/dev branch November 12, 2022 03:42
github-actions bot pushed a commit that referenced this pull request Nov 12, 2022
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.

None yet

2 participants