<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">On 10/23/2013 02:03 PM, Demitri Muna
wrote:<br>
</div>
<blockquote
cite="mid:1E0B087A-819D-4482-89F2-0BA78FA83CAB@gmail.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<br>
<div>
<div>On Oct 23, 2013, at 1:59 PM, Erik Tollerud <<a
moz-do-not-send="true" href="mailto:erik.tollerud@gmail.com">erik.tollerud@gmail.com</a>>
wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite"><span style="font-family: GillSans;
font-size: 14px; font-style: normal; font-variant: normal;
font-weight: normal; letter-spacing: normal; line-height:
normal; orphans: auto; text-align: start; text-indent: 0px;
text-transform: none; white-space: normal; widows: auto;
word-spacing: 0px; -webkit-text-stroke-width: 0px; float:
none; display: inline !important;">The reason</span><br
style="font-family: GillSans; font-size: 14px; font-style:
normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: normal; orphans: auto;
text-align: start; text-indent: 0px; text-transform: none;
white-space: normal; widows: auto; word-spacing: 0px;
-webkit-text-stroke-width: 0px;">
<span style="font-family: GillSans; font-size: 14px;
font-style: normal; font-variant: normal; font-weight:
normal; letter-spacing: normal; line-height: normal;
orphans: auto; text-align: start; text-indent: 0px;
text-transform: none; white-space: normal; widows: auto;
word-spacing: 0px; -webkit-text-stroke-width: 0px; float:
none; display: inline !important;">this is necessary is that
the default argument to `unit` is None, and</span><br
style="font-family: GillSans; font-size: 14px; font-style:
normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: normal; orphans: auto;
text-align: start; text-indent: 0px; text-transform: none;
white-space: normal; widows: auto; word-spacing: 0px;
-webkit-text-stroke-width: 0px;">
<span style="font-family: GillSans; font-size: 14px;
font-style: normal; font-variant: normal; font-weight:
normal; letter-spacing: normal; line-height: normal;
orphans: auto; text-align: start; text-indent: 0px;
text-transform: none; white-space: normal; widows: auto;
word-spacing: 0px; -webkit-text-stroke-width: 0px; float:
none; display: inline !important;">None means "no unit
given", rather than "dimensionless".</span></blockquote>
</div>
<div><br>
</div>
<div>I’ve been thinking about this. Is there a difference here? I
kind of want do to do:</div>
<div><br>
</div>
<div>Something(value, unit=None)</div>
<div><br>
</div>
<div>to mean it’s dimensionless.</div>
<br>
</blockquote>
<br>
This was determined early on in the development of astropy.units
that we need a way to distinguish between "no unit was defined", and
"the unit is dimensionless". "None" indicates no unit is assigned
to the value. This is helpful, for example, for tools that read
from files where units may be missing when they should be specified.<br>
<br>
See this:<br>
<br>
<a class="moz-txt-link-freetext" href="http://docs.astropy.org/en/latest/units/standard_units.html#the-dimensionless-unit">http://docs.astropy.org/en/latest/units/standard_units.html#the-dimensionless-unit</a><br>
<br>
Mike<br>
<pre class="moz-signature" cols="72">--
_
|\/|o _|_ _. _ | | \.__ __|__|_|_ _ _ ._ _
| ||(_| |(_|(/_| |_/|(_)(/_|_ |_|_)(_)(_)| | |
<a class="moz-txt-link-freetext" href="http://www.droettboom.com">http://www.droettboom.com</a></pre>
</body>
</html>