Changeset 7752d1f in ammosreader for doc/ammosreader/AmmosIFDataHeader.html


Ignore:
Timestamp:
05/20/23 20:56:15 (2 years ago)
Author:
Enrico Schwass <ennoausberlin@…>
Branches:
AmmosSource, guix
Children:
f3b78e8
Parents:
4eb8a2f
Message:

mostly style changes after running pylint

File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/ammosreader/AmmosIFDataHeader.html

    r4eb8a2f r7752d1f  
    4040
    4141    @classmethod
    42     def from_bytes(cls, bytes):
     42    def from_bytes(cls, in_bytes):
    4343        &#34;&#34;&#34;I return an AMMOS data header from given bytes.&#34;&#34;&#34;
    44         assert len(bytes) == cls.HEADER_SIZE
    45         elements = struct.unpack(&#39;&lt;IIQIIIQIIIIi&#39;, bytes)
     44        assert len(in_bytes) == cls.HEADER_SIZE
     45        elements = struct.unpack(&#39;&lt;IIQIIIQIIIIi&#39;, in_bytes)
    4646        block_count = elements[0]
    4747        block_length = int(elements[1])*4
     
    7777        self.voltage_ref = voltage_ref
    7878
    79     def __str_(self):
     79    def __str__(self):
    8080        output = (&#34;\nGlobal frame body data header\n&#34; +
    8181                  &#34;-----------------------------\n&#34; +
     
    115115
    116116    @classmethod
    117     def from_bytes(cls, bytes):
     117    def from_bytes(cls, in_bytes):
    118118        &#34;&#34;&#34;I return an AMMOS data header from given bytes.&#34;&#34;&#34;
    119         assert len(bytes) == cls.HEADER_SIZE
    120         elements = struct.unpack(&#39;&lt;IIQIIIQIIIIi&#39;, bytes)
     119        assert len(in_bytes) == cls.HEADER_SIZE
     120        elements = struct.unpack(&#39;&lt;IIQIIIQIIIIi&#39;, in_bytes)
    121121        block_count = elements[0]
    122122        block_length = int(elements[1])*4
     
    152152        self.voltage_ref = voltage_ref
    153153
    154     def __str_(self):
     154    def __str__(self):
    155155        output = (&#34;\nGlobal frame body data header\n&#34; +
    156156                  &#34;-----------------------------\n&#34; +
     
    173173<dl>
    174174<dt id="ammosreader.AmmosIFDataHeader.AmmosIFDataHeader.from_bytes"><code class="name flex">
    175 <span>def <span class="ident">from_bytes</span></span>(<span>bytes)</span>
     175<span>def <span class="ident">from_bytes</span></span>(<span>in_bytes)</span>
    176176</code></dt>
    177177<dd>
     
    182182</summary>
    183183<pre><code class="python">@classmethod
    184 def from_bytes(cls, bytes):
     184def from_bytes(cls, in_bytes):
    185185    &#34;&#34;&#34;I return an AMMOS data header from given bytes.&#34;&#34;&#34;
    186     assert len(bytes) == cls.HEADER_SIZE
    187     elements = struct.unpack(&#39;&lt;IIQIIIQIIIIi&#39;, bytes)
     186    assert len(in_bytes) == cls.HEADER_SIZE
     187    elements = struct.unpack(&#39;&lt;IIQIIIQIIIIi&#39;, in_bytes)
    188188    block_count = elements[0]
    189189    block_length = int(elements[1])*4
Note: See TracChangeset for help on using the changeset viewer.