Need to decide how much automatic conversion Quantities will support
A decision needs to be made about how much automatic unit conversion Quantities will do in different operations. Coming to a decision probably requires discussion with the SciPy user and developer community. Until then, none of these will be supported, but most of them are easy to implement.
Items to discuss:
Addition:
* Will addition of Quantities with different but reconcilable units be allowed? (e.g. allow x = 1 *ft + 1* m)
* If so, what units will the resulting quantity have?
Array item assignment:
* Will assignment to a Quantity array element with units different than the array's be allowed? (e.g. arr[6] = 1 * J when arr has units of BTU)
Automatic canceling of different units with same physical meaning:
* will J/ BTU automatically cancel to be dimensionless ? (kPa * m**3/ BTU would still not)
Blueprint information
- Status:
- Not started
- Approver:
- Darren Dale
- Priority:
- High
- Drafter:
- John Salvatier
- Direction:
- Needs approval
- Assignee:
- Darren Dale
- Definition:
- Review
- Series goal:
- Accepted for 0.5
- Implementation:
- Not started
- Milestone target:
- None
- Started by
- Completed by
Related branches
Sprints
Whiteboard
More topics for discussion:
How exactly should the .fill(scalar) method function?
*automatic rescaling? (ndarray.fill() casts the input to the array's type)
*currently input is cast to a quantity and an error is thrown if the dimensionalities are not the same
*one worrying aspect is that calling quantity.fill(0) will throw an error if quantity is not dimensionless