You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add compat bounds for Documenter.jl
* Add self dep to docs/Project.toml
* Update repo option for makedocs
* Turn off second doctest in makedocs
* Make code blocks into `@example`/`@repl` blocks
* Add doctests
* Add cross-reference links
* Fix backticks
* Fix code blocks in markdown list
* Use semicolon to suppress docs example block output
* Run doctests as part of makedocs()
* Ignore all Manifest.toml files
* Ignore auto-generated index.md
* Put `deploydocs` in CI conditional in make.jl
* Fix typo in parent commit
* docs: build previews
* docs: fix incorrect [sources]
---------
Co-authored-by: MilesCranmer <[email protected]>
Copy file name to clipboardExpand all lines: src/affine_dimensions.jl
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,7 @@ for op in [:*, :/, :+, :-], (first, second) in [(:AffineUnit, :Number), (:Number
38
38
39
39
# Skip the already defined value * unit case
40
40
op == :*&& first ==:Number&& second ==:AffineUnit&&continue
41
-
41
+
42
42
@evalfunction Base.$op(a::$first, b::$second)
43
43
throw(ArgumentError("Affine units only support scalar multiplication in the form 'number * unit', e.g., 22 * ua\"degC\", which will immediately convert it to a regular `Quantity{Float64,Dimensions{R}}`. Other operations are not supported."))
44
44
end
@@ -122,7 +122,7 @@ Convert a quantity `q` to the numerical value in terms of affine units specified
122
122
then strip the units. This allows getting the numerical value in terms of degrees Celsius or Fahrenheit.
0 commit comments