• Python code: brief

    From KK CHN@21:1/5 to All on Tue Jul 26 23:54:46 2022
    List ,

    I have come across a difficulty to understand the code in this file. I am unable to understand exactly what the code snippet is doing here.

    https://raw.githubusercontent.com/CODARcode/MDTrAnal/master/lib/codar/oas/MDTrSampler.py

    I am new to this type of scientific computing code snippets and it is coded
    by someone. Due to a requirement I would like to understand what these
    lines of code will do exactly. If someone could explain to me what the
    code snippets do in the code blocks, it will be a great help .

    Thanks in advance
    Krish

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Stefan Ram@21:1/5 to KK CHN on Tue Jul 26 18:58:16 2022
    KK CHN <kkchn.in@gmail.com> writes:
    I have come across a difficulty to understand the code in this file. I am >unable to understand exactly what the code snippet is doing here.

    With certain reservations, texts that can be considered
    to learn Python are:

    "Object-Oriented Programming in Python Documentation" - a PDF file, Introduction to Programming Using Python - Y Daniel Liang (2013),
    How to Think Like a Computer Scientist - Peter Wentworth (2012-08-12),
    The Coder's Apprentice - Pieter Spronck (2016-09-21), and
    Python Programming - John Zelle (2009).

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From dn@21:1/5 to KK CHN on Wed Jul 27 06:51:00 2022
    On 27/07/2022 06.24, KK CHN wrote:
    List ,

    I have come across a difficulty to understand the code in this file. I am unable to understand exactly what the code snippet is doing here.

    https://raw.githubusercontent.com/CODARcode/MDTrAnal/master/lib/codar/oas/MDTrSampler.py

    I am new to this type of scientific computing code snippets and it is coded by someone. Due to a requirement I would like to understand what these
    lines of code will do exactly. If someone could explain to me what the
    code snippets do in the code blocks, it will be a great help .


    Which lines of code, specifically?
    Is it some Python idiom that is problematic, or the code-logic?

    --
    Regards,
    =dn

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)