-
Notifications
You must be signed in to change notification settings - Fork 34
steelMemberShearPanel - Types for Steel Design #110
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
steelMemberShearPanel - Types for Steel Design #110
Conversation
dogukankaratas
commented
Mar 22, 2022
- steelMemberShearPanel class has added.
- Enumeration items created. (Some fixes has done in enumeration -there were identical classes, they're removed.)
- Unit test has added.
) | ||
sys.path.append(PROJECT_ROOT) | ||
|
||
from RFEM.enums import * |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please specify the imported enum. I think it should be just 3.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
comment: str = '', | ||
params: dict = {}): | ||
""" | ||
Args: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the argument section could be shorter, not specifying every case. Or at least specify first all arguments and then add any informatio necessary for understanding. I think we don't have to copy whole logic into dosctring. If user wants to know the logic, he ca nread it from the body of the method.
What do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can be done, but didn't want to delete when it's already there :) I will be more specific next time.
categories = [SteelMemberShearPanelPositionOnSection.POSITION_ON_UPPER_FLANGE, "FI (+) 35/207 - 0.63 (b: 1) | DIN 18807 | Fischer Profil", SteelMemberShearPanelFasteningArrangement.FASTENING_ARRANGEMENT_EVERY_RIB], | ||
parameters = [1, 2, 0.000247, 0.01043], | ||
comment: str = '', | ||
params: dict = {}): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
default dict value is now None in the main branch. Then add if before params assignment to clentObject.
if params:
for key in params:
clientObject[key] = params[key]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
assert shearPanel_3.panel_length == 2.0 | ||
|
||
|
||
Model.clientModel.service.finish_modification() No newline at end of file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add empty line at the end :-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
…emberShearPanelTypesForSteelDesign
This PR has Quantification details
Why proper sizing of changes matters
Optimal pull request sizes drive a better predictable PR flow as they strike a
What can I do to optimize my changes
How to interpret the change counts in git diff output
Was this comment helpful? 👍 :ok_hand: :thumbsdown: (Email) |