-
Notifications
You must be signed in to change notification settings - Fork 20
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
Trans #59
Trans #59
Conversation
Thanks for getting to this so quickly, @opotowsky! Comments inline. |
('Mass', ts.DOUBLE) | ||
] | ||
|
||
@metric(name='TransactionQuant', depends=_transdeps, schema=_transschema) |
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.
At a minimum, I would use Qty
vs. Quant
here to match similar usage across the project. I might further suggestion shortening to TransQty
. Is there any official metric name style guidance?
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.
There is not! I welcome any and all input since it looks like this will be a part of the 1.3 release (you can skim metrics.py right now since the PR for online documentation is still waiting on input).
Thank you for the suggestion here, I will make the change.
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 wouldn't use either. Just spell out Quantity.
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.
Should I then update other shortened names? ElectricityGen comes to mind.
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.
Probably. But that is a separate PR. Unless an abbreviation is approved by the style guide or in the docs, it should not be used. Currently we have no approved abbreviations.
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.
Understood. Thanks!
Alright @gidden, I think I addressed everything! |
excuse my ignorance, but will the interface require an update when you generalize the |
I left |
I guess what I'm saying is that the term |
('ResourceId', ts.INT), ('ObjId', ts.INT), | ||
('TimeCreated', ts.INT), ('SenderId', ts.INT), | ||
('ReceiverId', ts.INT), ('Commodity', ts.STRING), | ||
('Units', ts.STRING), ('Mass', ts.DOUBLE) |
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.
so here the schema key should be Quantity
and not Mass
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.
OH! My oversight. Thanks. I'll change this to Quantity
for the schema
Finally, all ready @gidden |
looks good, thanks @opotowsky |
Perhaps @gidden should check to make sure this is doing what he wants. This is basically listing all the simulation info / commodity and its mass. If correct, this will close issue #55