/usr/share/doc/python-pytango-doc/html/data_types.html is in python-pytango-doc 8.1.5-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Data types — PyTango 8.1.5 documentation</title>
<link rel="stylesheet" href="_static/default.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: './',
VERSION: '8.1.5',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
};
</script>
<script type="text/javascript" src="_static/jquery.js"></script>
<script type="text/javascript" src="_static/underscore.js"></script>
<script type="text/javascript" src="_static/doctools.js"></script>
<link rel="shortcut icon" href="_static/logo.ico"/>
<link rel="top" title="PyTango 8.1.5 documentation" href="index.html" />
<link rel="up" title="PyTango API" href="api.html" />
<link rel="next" title="Client API" href="client_api/index.html" />
<link rel="prev" title="PyTango API" href="api.html" />
</head>
<body>
<div class="related">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="genindex.html" title="General Index"
accesskey="I">index</a></li>
<li class="right" >
<a href="py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="right" >
<a href="client_api/index.html" title="Client API"
accesskey="N">next</a> |</li>
<li class="right" >
<a href="api.html" title="PyTango API"
accesskey="P">previous</a> |</li>
<li><a href="index.html">home</a>| </li>
<li><a href="start.html">getting started</a>| </li>
<li><a href="quicktour.html">quick tour</a>| </li>
<li><a href="howto.html">how to</a>| </li>
<li><a href="faq.html">FAQ</a>| </li>
<li><a href="contents.html">documentation </a> »</li>
<li><a href="api.html" accesskey="U">PyTango API</a> »</li>
</ul>
</div>
<div class="sphinxsidebar">
<div class="sphinxsidebarwrapper">
<p class="logo"><a href="contents.html">
<img class="logo" src="_static/logo.png" alt="Logo"/>
</a></p>
<h4>Previous topic</h4>
<p class="topless"><a href="api.html"
title="previous chapter">PyTango API</a></p>
<h4>Next topic</h4>
<p class="topless"><a href="client_api/index.html"
title="next chapter">Client API</a></p>
<h3>This Page</h3>
<ul class="this-page-menu">
<li><a href="_sources/data_types.txt"
rel="nofollow">Show Source</a></li>
</ul>
<div id="searchbox" style="display: none">
<h3>Quick search</h3>
<form class="search" action="search.html" method="get">
<input type="text" name="q" />
<input type="submit" value="Go" />
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
<p class="searchtip" style="font-size: 90%">
Enter search terms or a module, class or function name.
</p>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
</div>
</div>
<div class="document">
<div class="documentwrapper">
<div class="bodywrapper">
<div class="body">
<div class="section" id="data-types">
<span id="pytango-data-types"></span><h1>Data types<a class="headerlink" href="#data-types" title="Permalink to this headline">ΒΆ</a></h1>
<p>This chapter describes the mapping of data types between Python and Tango.</p>
<p>Tango has more data types than Python which is more dynamic. The input and
output values of the commands are translated according to the array below.
Note that if PyTango is compiled with <a class="reference external" href="http://docs.scipy.org/doc/numpy/reference/index.html#module-numpy" title="(in NumPy v1.8)"><tt class="xref py py-mod docutils literal"><span class="pre">numpy</span></tt></a> support the numpy type
will be the used for the input arguments. Also, it is recomended to use numpy
arrays of the appropiate type for output arguments as well, as they tend to be
much more efficient.</p>
<p><strong>For scalar types (SCALAR)</strong></p>
<table border="1" class="docutils">
<colgroup>
<col width="14%" />
<col width="43%" />
<col width="43%" />
</colgroup>
<thead valign="bottom">
<tr class="row-odd"><th class="head">Tango data type</th>
<th class="head">Python 2.x type</th>
<th class="head">Python 3.x type (<em>New in PyTango 8.0</em>)</th>
</tr>
</thead>
<tbody valign="top">
<tr class="row-even"><td>DEV_VOID</td>
<td>No data</td>
<td>No data</td>
</tr>
<tr class="row-odd"><td>DEV_BOOLEAN</td>
<td><tt class="xref py py-obj docutils literal"><span class="pre">bool</span></tt></td>
<td><tt class="xref py py-obj docutils literal"><span class="pre">bool</span></tt></td>
</tr>
<tr class="row-even"><td>DEV_SHORT</td>
<td><tt class="xref py py-obj docutils literal"><span class="pre">int</span></tt></td>
<td><tt class="xref py py-obj docutils literal"><span class="pre">int</span></tt></td>
</tr>
<tr class="row-odd"><td>DEV_LONG</td>
<td><tt class="xref py py-obj docutils literal"><span class="pre">int</span></tt></td>
<td><tt class="xref py py-obj docutils literal"><span class="pre">int</span></tt></td>
</tr>
<tr class="row-even"><td>DEV_LONG64</td>
<td><ul class="first last simple">
<li><tt class="xref py py-obj docutils literal"><span class="pre">long</span></tt> (on a 32 bits computer)</li>
<li><tt class="xref py py-obj docutils literal"><span class="pre">int</span></tt> (on a 64 bits computer)</li>
</ul>
</td>
<td><tt class="xref py py-obj docutils literal"><span class="pre">int</span></tt></td>
</tr>
<tr class="row-odd"><td>DEV_FLOAT</td>
<td><tt class="xref py py-obj docutils literal"><span class="pre">float</span></tt></td>
<td><tt class="xref py py-obj docutils literal"><span class="pre">float</span></tt></td>
</tr>
<tr class="row-even"><td>DEV_DOUBLE</td>
<td><tt class="xref py py-obj docutils literal"><span class="pre">float</span></tt></td>
<td><tt class="xref py py-obj docutils literal"><span class="pre">float</span></tt></td>
</tr>
<tr class="row-odd"><td>DEV_USHORT</td>
<td><tt class="xref py py-obj docutils literal"><span class="pre">int</span></tt></td>
<td><tt class="xref py py-obj docutils literal"><span class="pre">int</span></tt></td>
</tr>
<tr class="row-even"><td>DEV_ULONG</td>
<td><tt class="xref py py-obj docutils literal"><span class="pre">int</span></tt></td>
<td><tt class="xref py py-obj docutils literal"><span class="pre">int</span></tt></td>
</tr>
<tr class="row-odd"><td>DEV_ULONG64</td>
<td><ul class="first last simple">
<li><tt class="xref py py-obj docutils literal"><span class="pre">long</span></tt> (on a 32 bits computer)</li>
<li><tt class="xref py py-obj docutils literal"><span class="pre">int</span></tt> (on a 64 bits computer)</li>
</ul>
</td>
<td><tt class="xref py py-obj docutils literal"><span class="pre">int</span></tt></td>
</tr>
<tr class="row-even"><td>DEV_STRING</td>
<td><tt class="xref py py-obj docutils literal"><span class="pre">str</span></tt></td>
<td><tt class="xref py py-obj docutils literal"><span class="pre">str</span></tt> (decoded with <em>latin-1</em>, aka <em>ISO-8859-1</em>)</td>
</tr>
<tr class="row-odd"><td>DEV_ENCODED
(<em>New in PyTango 8.0</em>)</td>
<td><p class="first">sequence of two elements:</p>
<ol class="last arabic simple" start="0">
<li><tt class="xref py py-obj docutils literal"><span class="pre">str</span></tt></li>
<li><tt class="xref py py-obj docutils literal"><span class="pre">bytes</span></tt> (for any value of <em>extract_as</em>)</li>
</ol>
</td>
<td><p class="first">sequence of two elements:</p>
<ol class="last arabic simple" start="0">
<li><tt class="xref py py-obj docutils literal"><span class="pre">str</span></tt> (decoded with <em>latin-1</em>, aka <em>ISO-8859-1</em>)</li>
<li><tt class="xref py py-obj docutils literal"><span class="pre">bytes</span></tt> (for any value of <em>extract_as</em>, except String.
In this case it is <tt class="xref py py-obj docutils literal"><span class="pre">str</span></tt> (decoded with default python
encoding <em>utf-8</em>))</li>
</ol>
</td>
</tr>
</tbody>
</table>
<p><strong>For array types (SPECTRUM/IMAGE)</strong></p>
<table border="1" class="docutils">
<colgroup>
<col width="13%" />
<col width="9%" />
<col width="39%" />
<col width="39%" />
</colgroup>
<thead valign="bottom">
<tr class="row-odd"><th class="head">Tango data type</th>
<th class="head">ExtractAs</th>
<th class="head">Data type (Python 2.x)</th>
<th class="head">Data type (Python 3.x) (<em>New in PyTango 8.0</em>)</th>
</tr>
</thead>
<tbody valign="top">
<tr class="row-even"><td rowspan="6">DEVVAR_CHARARRAY</td>
<td>Numpy</td>
<td><a class="reference external" href="http://docs.scipy.org/doc/numpy/reference/generated/numpy.ndarray.html#numpy.ndarray" title="(in NumPy v1.8)"><tt class="xref py py-class docutils literal"><span class="pre">numpy.ndarray</span></tt></a> (dtype= <tt class="xref py py-obj docutils literal"><span class="pre">numpy.uint8</span></tt>)</td>
<td><a class="reference external" href="http://docs.scipy.org/doc/numpy/reference/generated/numpy.ndarray.html#numpy.ndarray" title="(in NumPy v1.8)"><tt class="xref py py-class docutils literal"><span class="pre">numpy.ndarray</span></tt></a> (dtype= <tt class="xref py py-obj docutils literal"><span class="pre">numpy.uint8</span></tt>)</td>
</tr>
<tr class="row-odd"><td>Bytes</td>
<td><tt class="xref py py-obj docutils literal"><span class="pre">bytes</span></tt> (which is in fact equal to <tt class="xref py py-obj docutils literal"><span class="pre">str</span></tt>)</td>
<td><tt class="xref py py-obj docutils literal"><span class="pre">bytes</span></tt></td>
</tr>
<tr class="row-even"><td>ByteArray</td>
<td><tt class="xref py py-obj docutils literal"><span class="pre">bytearray</span></tt></td>
<td><tt class="xref py py-obj docutils literal"><span class="pre">bytearray</span></tt></td>
</tr>
<tr class="row-odd"><td>String</td>
<td><tt class="xref py py-obj docutils literal"><span class="pre">str</span></tt></td>
<td>String <tt class="xref py py-obj docutils literal"><span class="pre">str</span></tt> (decoded with default python encoding <em>utf-8</em>!!!)</td>
</tr>
<tr class="row-even"><td>List</td>
<td><tt class="xref py py-class docutils literal"><span class="pre">list</span></tt> <<tt class="xref py py-obj docutils literal"><span class="pre">int</span></tt>></td>
<td><tt class="xref py py-class docutils literal"><span class="pre">list</span></tt> <<tt class="xref py py-obj docutils literal"><span class="pre">int</span></tt>></td>
</tr>
<tr class="row-odd"><td>Tuple</td>
<td><tt class="xref py py-class docutils literal"><span class="pre">tuple</span></tt> <<tt class="xref py py-obj docutils literal"><span class="pre">int</span></tt>></td>
<td><tt class="xref py py-class docutils literal"><span class="pre">tuple</span></tt> <<tt class="xref py py-obj docutils literal"><span class="pre">int</span></tt>></td>
</tr>
<tr class="row-even"><td rowspan="6">DEVVAR_SHORTARRAY
or
(DEV_SHORT + SPECTRUM)
or
(DEV_SHORT + IMAGE)</td>
<td>Numpy</td>
<td><a class="reference external" href="http://docs.scipy.org/doc/numpy/reference/generated/numpy.ndarray.html#numpy.ndarray" title="(in NumPy v1.8)"><tt class="xref py py-class docutils literal"><span class="pre">numpy.ndarray</span></tt></a> (dtype= <tt class="xref py py-obj docutils literal"><span class="pre">numpy.uint16</span></tt>)</td>
<td><a class="reference external" href="http://docs.scipy.org/doc/numpy/reference/generated/numpy.ndarray.html#numpy.ndarray" title="(in NumPy v1.8)"><tt class="xref py py-class docutils literal"><span class="pre">numpy.ndarray</span></tt></a> (dtype= <tt class="xref py py-obj docutils literal"><span class="pre">numpy.uint16</span></tt>)</td>
</tr>
<tr class="row-odd"><td>Bytes</td>
<td><tt class="xref py py-obj docutils literal"><span class="pre">bytes</span></tt> (which is in fact equal to <tt class="xref py py-obj docutils literal"><span class="pre">str</span></tt>)</td>
<td><tt class="xref py py-obj docutils literal"><span class="pre">bytes</span></tt></td>
</tr>
<tr class="row-even"><td>ByteArray</td>
<td><tt class="xref py py-obj docutils literal"><span class="pre">bytearray</span></tt></td>
<td><tt class="xref py py-obj docutils literal"><span class="pre">bytearray</span></tt></td>
</tr>
<tr class="row-odd"><td>String</td>
<td><tt class="xref py py-obj docutils literal"><span class="pre">str</span></tt></td>
<td>String <tt class="xref py py-obj docutils literal"><span class="pre">str</span></tt> (decoded with default python encoding <em>utf-8</em>!!!)</td>
</tr>
<tr class="row-even"><td>List</td>
<td><tt class="xref py py-class docutils literal"><span class="pre">list</span></tt> <<tt class="xref py py-obj docutils literal"><span class="pre">int</span></tt>></td>
<td><tt class="xref py py-class docutils literal"><span class="pre">list</span></tt> <<tt class="xref py py-obj docutils literal"><span class="pre">int</span></tt>></td>
</tr>
<tr class="row-odd"><td>Tuple</td>
<td><tt class="xref py py-class docutils literal"><span class="pre">tuple</span></tt> <<tt class="xref py py-obj docutils literal"><span class="pre">int</span></tt>></td>
<td><tt class="xref py py-class docutils literal"><span class="pre">tuple</span></tt> <<tt class="xref py py-obj docutils literal"><span class="pre">int</span></tt>></td>
</tr>
<tr class="row-even"><td rowspan="6">DEVVAR_LONGARRAY
or
(DEV_LONG + SPECTRUM)
or
(DEV_LONG + IMAGE)</td>
<td>Numpy</td>
<td><a class="reference external" href="http://docs.scipy.org/doc/numpy/reference/generated/numpy.ndarray.html#numpy.ndarray" title="(in NumPy v1.8)"><tt class="xref py py-class docutils literal"><span class="pre">numpy.ndarray</span></tt></a> (dtype= <tt class="xref py py-obj docutils literal"><span class="pre">numpy.uint32</span></tt>)</td>
<td><a class="reference external" href="http://docs.scipy.org/doc/numpy/reference/generated/numpy.ndarray.html#numpy.ndarray" title="(in NumPy v1.8)"><tt class="xref py py-class docutils literal"><span class="pre">numpy.ndarray</span></tt></a> (dtype= <tt class="xref py py-obj docutils literal"><span class="pre">numpy.uint32</span></tt>)</td>
</tr>
<tr class="row-odd"><td>Bytes</td>
<td><tt class="xref py py-obj docutils literal"><span class="pre">bytes</span></tt> (which is in fact equal to <tt class="xref py py-obj docutils literal"><span class="pre">str</span></tt>)</td>
<td><tt class="xref py py-obj docutils literal"><span class="pre">bytes</span></tt></td>
</tr>
<tr class="row-even"><td>ByteArray</td>
<td><tt class="xref py py-obj docutils literal"><span class="pre">bytearray</span></tt></td>
<td><tt class="xref py py-obj docutils literal"><span class="pre">bytearray</span></tt></td>
</tr>
<tr class="row-odd"><td>String</td>
<td><tt class="xref py py-obj docutils literal"><span class="pre">str</span></tt></td>
<td>String <tt class="xref py py-obj docutils literal"><span class="pre">str</span></tt> (decoded with default python encoding <em>utf-8</em>!!!)</td>
</tr>
<tr class="row-even"><td>List</td>
<td><tt class="xref py py-class docutils literal"><span class="pre">list</span></tt> <<tt class="xref py py-obj docutils literal"><span class="pre">int</span></tt>></td>
<td><tt class="xref py py-class docutils literal"><span class="pre">list</span></tt> <<tt class="xref py py-obj docutils literal"><span class="pre">int</span></tt>></td>
</tr>
<tr class="row-odd"><td>Tuple</td>
<td><tt class="xref py py-class docutils literal"><span class="pre">tuple</span></tt> <<tt class="xref py py-obj docutils literal"><span class="pre">int</span></tt>></td>
<td><tt class="xref py py-class docutils literal"><span class="pre">tuple</span></tt> <<tt class="xref py py-obj docutils literal"><span class="pre">int</span></tt>></td>
</tr>
<tr class="row-even"><td rowspan="6">DEVVAR_LONG64ARRAY
or
(DEV_LONG64 + SPECTRUM)
or
(DEV_LONG64 + IMAGE)</td>
<td>Numpy</td>
<td><a class="reference external" href="http://docs.scipy.org/doc/numpy/reference/generated/numpy.ndarray.html#numpy.ndarray" title="(in NumPy v1.8)"><tt class="xref py py-class docutils literal"><span class="pre">numpy.ndarray</span></tt></a> (dtype= <tt class="xref py py-obj docutils literal"><span class="pre">numpy.uint64</span></tt>)</td>
<td><a class="reference external" href="http://docs.scipy.org/doc/numpy/reference/generated/numpy.ndarray.html#numpy.ndarray" title="(in NumPy v1.8)"><tt class="xref py py-class docutils literal"><span class="pre">numpy.ndarray</span></tt></a> (dtype= <tt class="xref py py-obj docutils literal"><span class="pre">numpy.uint64</span></tt>)</td>
</tr>
<tr class="row-odd"><td>Bytes</td>
<td><tt class="xref py py-obj docutils literal"><span class="pre">bytes</span></tt> (which is in fact equal to <tt class="xref py py-obj docutils literal"><span class="pre">str</span></tt>)</td>
<td><tt class="xref py py-obj docutils literal"><span class="pre">bytes</span></tt></td>
</tr>
<tr class="row-even"><td>ByteArray</td>
<td><tt class="xref py py-obj docutils literal"><span class="pre">bytearray</span></tt></td>
<td><tt class="xref py py-obj docutils literal"><span class="pre">bytearray</span></tt></td>
</tr>
<tr class="row-odd"><td>String</td>
<td><tt class="xref py py-obj docutils literal"><span class="pre">str</span></tt></td>
<td>String <tt class="xref py py-obj docutils literal"><span class="pre">str</span></tt> (decoded with default python encoding <em>utf-8</em>!!!)</td>
</tr>
<tr class="row-even"><td>List</td>
<td><tt class="xref py py-class docutils literal"><span class="pre">list</span></tt> <int (64 bits) / long (32 bits)></td>
<td><tt class="xref py py-class docutils literal"><span class="pre">list</span></tt> <<tt class="xref py py-obj docutils literal"><span class="pre">int</span></tt>></td>
</tr>
<tr class="row-odd"><td>Tuple</td>
<td><tt class="xref py py-class docutils literal"><span class="pre">tuple</span></tt> <int (64 bits) / long (32 bits)></td>
<td><tt class="xref py py-class docutils literal"><span class="pre">tuple</span></tt> <<tt class="xref py py-obj docutils literal"><span class="pre">int</span></tt>></td>
</tr>
<tr class="row-even"><td rowspan="6">DEVVAR_FLOATARRAY
or
(DEV_FLOAT + SPECTRUM)
or
(DEV_FLOAT + IMAGE)</td>
<td>Numpy</td>
<td><a class="reference external" href="http://docs.scipy.org/doc/numpy/reference/generated/numpy.ndarray.html#numpy.ndarray" title="(in NumPy v1.8)"><tt class="xref py py-class docutils literal"><span class="pre">numpy.ndarray</span></tt></a> (dtype= <tt class="xref py py-obj docutils literal"><span class="pre">numpy.float32</span></tt>)</td>
<td><a class="reference external" href="http://docs.scipy.org/doc/numpy/reference/generated/numpy.ndarray.html#numpy.ndarray" title="(in NumPy v1.8)"><tt class="xref py py-class docutils literal"><span class="pre">numpy.ndarray</span></tt></a> (dtype= <tt class="xref py py-obj docutils literal"><span class="pre">numpy.float32</span></tt>)</td>
</tr>
<tr class="row-odd"><td>Bytes</td>
<td><tt class="xref py py-obj docutils literal"><span class="pre">bytes</span></tt> (which is in fact equal to <tt class="xref py py-obj docutils literal"><span class="pre">str</span></tt>)</td>
<td><tt class="xref py py-obj docutils literal"><span class="pre">bytes</span></tt></td>
</tr>
<tr class="row-even"><td>ByteArray</td>
<td><tt class="xref py py-obj docutils literal"><span class="pre">bytearray</span></tt></td>
<td><tt class="xref py py-obj docutils literal"><span class="pre">bytearray</span></tt></td>
</tr>
<tr class="row-odd"><td>String</td>
<td><tt class="xref py py-obj docutils literal"><span class="pre">str</span></tt></td>
<td>String <tt class="xref py py-obj docutils literal"><span class="pre">str</span></tt> (decoded with default python encoding <em>utf-8</em>!!!)</td>
</tr>
<tr class="row-even"><td>List</td>
<td><tt class="xref py py-class docutils literal"><span class="pre">list</span></tt> <<tt class="xref py py-obj docutils literal"><span class="pre">float</span></tt>></td>
<td><tt class="xref py py-class docutils literal"><span class="pre">list</span></tt> <<tt class="xref py py-obj docutils literal"><span class="pre">float</span></tt>></td>
</tr>
<tr class="row-odd"><td>Tuple</td>
<td><tt class="xref py py-class docutils literal"><span class="pre">tuple</span></tt> <<tt class="xref py py-obj docutils literal"><span class="pre">float</span></tt>></td>
<td><tt class="xref py py-class docutils literal"><span class="pre">tuple</span></tt> <<tt class="xref py py-obj docutils literal"><span class="pre">float</span></tt>></td>
</tr>
<tr class="row-even"><td rowspan="6">DEVVAR_DOUBLEARRAY
or
(DEV_DOUBLE + SPECTRUM)
or
(DEV_DOUBLE + IMAGE)</td>
<td>Numpy</td>
<td><a class="reference external" href="http://docs.scipy.org/doc/numpy/reference/generated/numpy.ndarray.html#numpy.ndarray" title="(in NumPy v1.8)"><tt class="xref py py-class docutils literal"><span class="pre">numpy.ndarray</span></tt></a> (dtype= <tt class="xref py py-obj docutils literal"><span class="pre">numpy.float64</span></tt>)</td>
<td><a class="reference external" href="http://docs.scipy.org/doc/numpy/reference/generated/numpy.ndarray.html#numpy.ndarray" title="(in NumPy v1.8)"><tt class="xref py py-class docutils literal"><span class="pre">numpy.ndarray</span></tt></a> (dtype= <tt class="xref py py-obj docutils literal"><span class="pre">numpy.float64</span></tt>)</td>
</tr>
<tr class="row-odd"><td>Bytes</td>
<td><tt class="xref py py-obj docutils literal"><span class="pre">bytes</span></tt> (which is in fact equal to <tt class="xref py py-obj docutils literal"><span class="pre">str</span></tt>)</td>
<td><tt class="xref py py-obj docutils literal"><span class="pre">bytes</span></tt></td>
</tr>
<tr class="row-even"><td>ByteArray</td>
<td><tt class="xref py py-obj docutils literal"><span class="pre">bytearray</span></tt></td>
<td><tt class="xref py py-obj docutils literal"><span class="pre">bytearray</span></tt></td>
</tr>
<tr class="row-odd"><td>String</td>
<td><tt class="xref py py-obj docutils literal"><span class="pre">str</span></tt></td>
<td>String <tt class="xref py py-obj docutils literal"><span class="pre">str</span></tt> (decoded with default python encoding <em>utf-8</em>!!!)</td>
</tr>
<tr class="row-even"><td>List</td>
<td><tt class="xref py py-class docutils literal"><span class="pre">list</span></tt> <<tt class="xref py py-obj docutils literal"><span class="pre">float</span></tt>></td>
<td><tt class="xref py py-class docutils literal"><span class="pre">list</span></tt> <<tt class="xref py py-obj docutils literal"><span class="pre">float</span></tt>></td>
</tr>
<tr class="row-odd"><td>Tuple</td>
<td><tt class="xref py py-class docutils literal"><span class="pre">tuple</span></tt> <<tt class="xref py py-obj docutils literal"><span class="pre">float</span></tt>></td>
<td><tt class="xref py py-class docutils literal"><span class="pre">tuple</span></tt> <<tt class="xref py py-obj docutils literal"><span class="pre">float</span></tt>></td>
</tr>
<tr class="row-even"><td rowspan="6">DEVVAR_USHORTARRAY
or
(DEV_USHORT + SPECTRUM)
or
(DEV_USHORT + IMAGE)</td>
<td>Numpy</td>
<td><a class="reference external" href="http://docs.scipy.org/doc/numpy/reference/generated/numpy.ndarray.html#numpy.ndarray" title="(in NumPy v1.8)"><tt class="xref py py-class docutils literal"><span class="pre">numpy.ndarray</span></tt></a> (dtype= <tt class="xref py py-obj docutils literal"><span class="pre">numpy.uint16</span></tt>)</td>
<td><a class="reference external" href="http://docs.scipy.org/doc/numpy/reference/generated/numpy.ndarray.html#numpy.ndarray" title="(in NumPy v1.8)"><tt class="xref py py-class docutils literal"><span class="pre">numpy.ndarray</span></tt></a> (dtype= <tt class="xref py py-obj docutils literal"><span class="pre">numpy.uint16</span></tt>)</td>
</tr>
<tr class="row-odd"><td>Bytes</td>
<td><tt class="xref py py-obj docutils literal"><span class="pre">bytes</span></tt> (which is in fact equal to <tt class="xref py py-obj docutils literal"><span class="pre">str</span></tt>)</td>
<td><tt class="xref py py-obj docutils literal"><span class="pre">bytes</span></tt></td>
</tr>
<tr class="row-even"><td>ByteArray</td>
<td><tt class="xref py py-obj docutils literal"><span class="pre">bytearray</span></tt></td>
<td><tt class="xref py py-obj docutils literal"><span class="pre">bytearray</span></tt></td>
</tr>
<tr class="row-odd"><td>String</td>
<td><tt class="xref py py-obj docutils literal"><span class="pre">str</span></tt></td>
<td>String <tt class="xref py py-obj docutils literal"><span class="pre">str</span></tt> (decoded with default python encoding <em>utf-8</em>!!!)</td>
</tr>
<tr class="row-even"><td>List</td>
<td><tt class="xref py py-class docutils literal"><span class="pre">list</span></tt> <<tt class="xref py py-obj docutils literal"><span class="pre">int</span></tt>></td>
<td><tt class="xref py py-class docutils literal"><span class="pre">list</span></tt> <<tt class="xref py py-obj docutils literal"><span class="pre">int</span></tt>></td>
</tr>
<tr class="row-odd"><td>Tuple</td>
<td><tt class="xref py py-class docutils literal"><span class="pre">tuple</span></tt> <<tt class="xref py py-obj docutils literal"><span class="pre">int</span></tt>></td>
<td><tt class="xref py py-class docutils literal"><span class="pre">tuple</span></tt> <<tt class="xref py py-obj docutils literal"><span class="pre">int</span></tt>></td>
</tr>
<tr class="row-even"><td rowspan="6">DEVVAR_ULONGARRAY
or
(DEV_ULONG + SPECTRUM)
or
(DEV_ULONG + IMAGE)</td>
<td>Numpy</td>
<td><a class="reference external" href="http://docs.scipy.org/doc/numpy/reference/generated/numpy.ndarray.html#numpy.ndarray" title="(in NumPy v1.8)"><tt class="xref py py-class docutils literal"><span class="pre">numpy.ndarray</span></tt></a> (dtype= <tt class="xref py py-obj docutils literal"><span class="pre">numpy.uint32</span></tt>)</td>
<td><a class="reference external" href="http://docs.scipy.org/doc/numpy/reference/generated/numpy.ndarray.html#numpy.ndarray" title="(in NumPy v1.8)"><tt class="xref py py-class docutils literal"><span class="pre">numpy.ndarray</span></tt></a> (dtype= <tt class="xref py py-obj docutils literal"><span class="pre">numpy.uint32</span></tt>)</td>
</tr>
<tr class="row-odd"><td>Bytes</td>
<td><tt class="xref py py-obj docutils literal"><span class="pre">bytes</span></tt> (which is in fact equal to <tt class="xref py py-obj docutils literal"><span class="pre">str</span></tt>)</td>
<td><tt class="xref py py-obj docutils literal"><span class="pre">bytes</span></tt></td>
</tr>
<tr class="row-even"><td>ByteArray</td>
<td><tt class="xref py py-obj docutils literal"><span class="pre">bytearray</span></tt></td>
<td><tt class="xref py py-obj docutils literal"><span class="pre">bytearray</span></tt></td>
</tr>
<tr class="row-odd"><td>String</td>
<td><tt class="xref py py-obj docutils literal"><span class="pre">str</span></tt></td>
<td>String <tt class="xref py py-obj docutils literal"><span class="pre">str</span></tt> (decoded with default python encoding <em>utf-8</em>!!!)</td>
</tr>
<tr class="row-even"><td>List</td>
<td><tt class="xref py py-class docutils literal"><span class="pre">list</span></tt> <<tt class="xref py py-obj docutils literal"><span class="pre">int</span></tt>></td>
<td><tt class="xref py py-class docutils literal"><span class="pre">list</span></tt> <<tt class="xref py py-obj docutils literal"><span class="pre">int</span></tt>></td>
</tr>
<tr class="row-odd"><td>Tuple</td>
<td><tt class="xref py py-class docutils literal"><span class="pre">tuple</span></tt> <<tt class="xref py py-obj docutils literal"><span class="pre">int</span></tt>></td>
<td><tt class="xref py py-class docutils literal"><span class="pre">tuple</span></tt> <<tt class="xref py py-obj docutils literal"><span class="pre">int</span></tt>></td>
</tr>
<tr class="row-even"><td rowspan="6">DEVVAR_ULONG64ARRAY
or
(DEV_ULONG64 + SPECTRUM)
or
(DEV_ULONG64 + IMAGE)</td>
<td>Numpy</td>
<td><a class="reference external" href="http://docs.scipy.org/doc/numpy/reference/generated/numpy.ndarray.html#numpy.ndarray" title="(in NumPy v1.8)"><tt class="xref py py-class docutils literal"><span class="pre">numpy.ndarray</span></tt></a> (dtype= <tt class="xref py py-obj docutils literal"><span class="pre">numpy.uint64</span></tt>)</td>
<td><a class="reference external" href="http://docs.scipy.org/doc/numpy/reference/generated/numpy.ndarray.html#numpy.ndarray" title="(in NumPy v1.8)"><tt class="xref py py-class docutils literal"><span class="pre">numpy.ndarray</span></tt></a> (dtype= <tt class="xref py py-obj docutils literal"><span class="pre">numpy.uint64</span></tt>)</td>
</tr>
<tr class="row-odd"><td>Bytes</td>
<td><tt class="xref py py-obj docutils literal"><span class="pre">bytes</span></tt> (which is in fact equal to <tt class="xref py py-obj docutils literal"><span class="pre">str</span></tt>)</td>
<td><tt class="xref py py-obj docutils literal"><span class="pre">bytes</span></tt></td>
</tr>
<tr class="row-even"><td>ByteArray</td>
<td><tt class="xref py py-obj docutils literal"><span class="pre">bytearray</span></tt></td>
<td><tt class="xref py py-obj docutils literal"><span class="pre">bytearray</span></tt></td>
</tr>
<tr class="row-odd"><td>String</td>
<td><tt class="xref py py-obj docutils literal"><span class="pre">str</span></tt></td>
<td>String <tt class="xref py py-obj docutils literal"><span class="pre">str</span></tt> (decoded with default python encoding <em>utf-8</em>!!!)</td>
</tr>
<tr class="row-even"><td>List</td>
<td><tt class="xref py py-class docutils literal"><span class="pre">list</span></tt> <int (64 bits) / long (32 bits)></td>
<td><tt class="xref py py-class docutils literal"><span class="pre">list</span></tt> <<tt class="xref py py-obj docutils literal"><span class="pre">int</span></tt>></td>
</tr>
<tr class="row-odd"><td>Tuple</td>
<td><tt class="xref py py-class docutils literal"><span class="pre">tuple</span></tt> <int (64 bits) / long (32 bits)></td>
<td><tt class="xref py py-class docutils literal"><span class="pre">tuple</span></tt> <<tt class="xref py py-obj docutils literal"><span class="pre">int</span></tt>></td>
</tr>
<tr class="row-even"><td>DEVVAR_STRINGARRAY
or
(DEV_STRING + SPECTRUM)
or
(DEV_STRING + IMAGE)</td>
<td> </td>
<td>sequence<<tt class="xref py py-obj docutils literal"><span class="pre">str</span></tt>></td>
<td>sequence<<tt class="xref py py-obj docutils literal"><span class="pre">str</span></tt>>
(decoded with <em>latin-1</em>, aka <em>ISO-8859-1</em>)</td>
</tr>
<tr class="row-odd"><td>DEV_LONGSTRINGARRAY</td>
<td> </td>
<td><p class="first">sequence of two elements:</p>
<ol class="last arabic simple" start="0">
<li><a class="reference external" href="http://docs.scipy.org/doc/numpy/reference/generated/numpy.ndarray.html#numpy.ndarray" title="(in NumPy v1.8)"><tt class="xref py py-class docutils literal"><span class="pre">numpy.ndarray</span></tt></a> (dtype= <tt class="xref py py-obj docutils literal"><span class="pre">numpy.int32</span></tt>) or
sequence<<tt class="xref py py-obj docutils literal"><span class="pre">int</span></tt>></li>
<li>sequence<<tt class="xref py py-obj docutils literal"><span class="pre">str</span></tt>></li>
</ol>
</td>
<td><p class="first">sequence of two elements:</p>
<ol class="last arabic simple" start="0">
<li><a class="reference external" href="http://docs.scipy.org/doc/numpy/reference/generated/numpy.ndarray.html#numpy.ndarray" title="(in NumPy v1.8)"><tt class="xref py py-class docutils literal"><span class="pre">numpy.ndarray</span></tt></a> (dtype= <tt class="xref py py-obj docutils literal"><span class="pre">numpy.int32</span></tt>) or
sequence<<tt class="xref py py-obj docutils literal"><span class="pre">int</span></tt>></li>
<li>sequence<<tt class="xref py py-obj docutils literal"><span class="pre">str</span></tt>> (decoded with <em>latin-1</em>, aka <em>ISO-8859-1</em>)</li>
</ol>
</td>
</tr>
<tr class="row-even"><td>DEV_DOUBLESTRINGARRAY</td>
<td> </td>
<td><p class="first">sequence of two elements:</p>
<ol class="last arabic simple" start="0">
<li><a class="reference external" href="http://docs.scipy.org/doc/numpy/reference/generated/numpy.ndarray.html#numpy.ndarray" title="(in NumPy v1.8)"><tt class="xref py py-class docutils literal"><span class="pre">numpy.ndarray</span></tt></a> (dtype= <tt class="xref py py-obj docutils literal"><span class="pre">numpy.float64</span></tt>) or
sequence<<tt class="xref py py-obj docutils literal"><span class="pre">int</span></tt>></li>
<li>sequence<<tt class="xref py py-obj docutils literal"><span class="pre">str</span></tt>></li>
</ol>
</td>
<td><p class="first">sequence of two elements:</p>
<ol class="last arabic simple" start="0">
<li><a class="reference external" href="http://docs.scipy.org/doc/numpy/reference/generated/numpy.ndarray.html#numpy.ndarray" title="(in NumPy v1.8)"><tt class="xref py py-class docutils literal"><span class="pre">numpy.ndarray</span></tt></a> (dtype= <tt class="xref py py-obj docutils literal"><span class="pre">numpy.float64</span></tt>) or
sequence<<tt class="xref py py-obj docutils literal"><span class="pre">int</span></tt>></li>
<li>sequence<<tt class="xref py py-obj docutils literal"><span class="pre">str</span></tt>> (decoded with <em>latin-1</em>, aka <em>ISO-8859-1</em>)</li>
</ol>
</td>
</tr>
</tbody>
</table>
<p>For SPECTRUM and IMAGES the actual sequence object used depends on the context
where the tango data is used, and the availability of <a class="reference external" href="http://docs.scipy.org/doc/numpy/reference/index.html#module-numpy" title="(in NumPy v1.8)"><tt class="xref py py-mod docutils literal"><span class="pre">numpy</span></tt></a>.</p>
<ol class="arabic">
<li><p class="first">for properties the sequence is always a <tt class="xref py py-class docutils literal"><span class="pre">list</span></tt>. Example:</p>
<div class="highlight-python"><div class="highlight"><pre><span class="gp">>>> </span><span class="kn">import</span> <span class="nn">PyTango</span>
<span class="gp">>>> </span><span class="n">db</span> <span class="o">=</span> <span class="n">PyTango</span><span class="o">.</span><span class="n">Database</span><span class="p">()</span>
<span class="gp">>>> </span><span class="n">s</span> <span class="o">=</span> <span class="n">db</span><span class="o">.</span><span class="n">get_property</span><span class="p">([</span><span class="s">"TangoSynchrotrons"</span><span class="p">])</span>
<span class="gp">>>> </span><span class="k">print</span> <span class="nb">type</span><span class="p">(</span><span class="n">s</span><span class="p">)</span>
<span class="go"><type 'list'></span>
</pre></div>
</div>
</li>
<li><dl class="first docutils">
<dt>for attribute/command values</dt>
<dd><ul class="first last simple">
<li><a class="reference external" href="http://docs.scipy.org/doc/numpy/reference/generated/numpy.ndarray.html#numpy.ndarray" title="(in NumPy v1.8)"><tt class="xref py py-class docutils literal"><span class="pre">numpy.ndarray</span></tt></a> if PyTango was compiled with <a class="reference external" href="http://docs.scipy.org/doc/numpy/reference/index.html#module-numpy" title="(in NumPy v1.8)"><tt class="xref py py-mod docutils literal"><span class="pre">numpy</span></tt></a>
support (default) and <a class="reference external" href="http://docs.scipy.org/doc/numpy/reference/index.html#module-numpy" title="(in NumPy v1.8)"><tt class="xref py py-mod docutils literal"><span class="pre">numpy</span></tt></a> is installed.</li>
<li><tt class="xref py py-class docutils literal"><span class="pre">list</span></tt> otherwise</li>
</ul>
</dd>
</dl>
</li>
</ol>
</div>
</div>
</div>
</div>
<div class="clearer"></div>
</div>
<div class="related">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="genindex.html" title="General Index"
>index</a></li>
<li class="right" >
<a href="py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="right" >
<a href="client_api/index.html" title="Client API"
>next</a> |</li>
<li class="right" >
<a href="api.html" title="PyTango API"
>previous</a> |</li>
<li><a href="index.html">home</a>| </li>
<li><a href="start.html">getting started</a>| </li>
<li><a href="quicktour.html">quick tour</a>| </li>
<li><a href="howto.html">how to</a>| </li>
<li><a href="faq.html">FAQ</a>| </li>
<li><a href="contents.html">documentation </a> »</li>
<li><a href="api.html" >PyTango API</a> »</li>
</ul>
</div>
<div class="footer">
© Copyright Except where otherwise noted, content on this site is
licensed under a Creative Commons Attribution 3.0 License.
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.2.3.
</div>
</body>
</html>
|