Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Help with understanding a python package
#1
Hi all,

My python level is decent but I am having difficulties trying to understand this python package called pyrpl:

https://github.com/lneuhaus/pyrpl/tree/master/pyrpl

https://pyrpl.readthedocs.io/en/latest/

It is fairly dense and I am having difficulties separating the wheat from the chaff. My goal is trying to understand it so that I can use the program for some experiments and perhaps to contribute to the development of the software in the future. At this point I would like to learn about the modules from the software (modules.py, hardware_modues/ and software_modules). I am reading through modules.py since it is the backbone of all the code in the two folders but there are a lot of classes and I am having troubles understanding everything.

Any help is appreciated. Suggestions on what I could do to better understand the code or what does one need to understand beforehand to even be able to understand the code would be helpful (Some parts of the code I have the "I don't know what I don't know" confusion). I'd be very interested if someone could go through the code with me (we can use discord).
Quote
#2
There's a lot of code there, going through and explaining what each module does would take a very long time indeed.
Taking a through python course, and reading the manual would be my suggestion.
A couple of good courses are:
http://interactivepython.org/courselib/s...index.html
or
https://www.python-course.eu/python3_course.php
Quote
#3
(Mar-20-2019, 01:33 PM)pyhill00 Wrote: At this point I would like to learn about the modules from the software (modules.py, hardware_modues/ and software_modules).
I have tutorial here about module/packages ,it can be a little complicated topic,so you should have fairly good basic Python knowledge first.
Quote
#4
(Mar-20-2019, 03:22 PM)Larz60+ Wrote: There's a lot of code there, going through and explaining what each module does would take a very long time indeed.

Thanks for the links. Yea it would take a long time but I don't want/need to go through everything. I just would like to first go through the modules.py and the two modules folders.

The package has also a lot to do with pyqt (QT Core), APIs, how sockets and networking work and the package requires quite a lot of domain knowledge on how the hardware works. Even if my python levels were better, I'd still have issues on understanding this stuff. Anyone have any tips what additionally I need to learn to comprehend this package? Say I read https://www.python-course.eu/python3_course.php, what else should I read? Also, I have tried to understand QT Core / pyqt but there is not much material on it. I don't even know where to begin with it.


(Mar-20-2019, 03:22 PM)Larz60+ Wrote: manual

what manual are you referring to?

(Mar-20-2019, 04:18 PM)snippsat Wrote:
(Mar-20-2019, 01:33 PM)pyhill00 Wrote: At this point I would like to learn about the modules from the software (modules.py, hardware_modues/ and software_modules).
I have tutorial here about module/packages ,it can be a little complicated topic,so you should have fairly good basic Python knowledge first.

I meant modules.py from the pyrpl package. I understand Python modules and packages quite ok.
Quote
#5
'manual' was wrong choice of word, docs would have been better.
I was refering to : https://pyrpl.readthedocs.io/en/latest/
Quote

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  Help needed for a python package keysson 1 159 Sep-02-2020, 03:37 AM
Last Post: Larz60+
  Better Understanding Of Object Orientation In Python JoeDainton123 3 248 Aug-30-2020, 02:49 PM
Last Post: deanhystad
  Installing a python package using pip anthonymoss78 0 129 Jul-14-2020, 01:52 PM
Last Post: anthonymoss78
  Python package as installable Prabakaran141 0 272 Mar-10-2020, 10:07 AM
Last Post: Prabakaran141
  Understanding Python's Import Engine MysticaL 1 355 Feb-07-2020, 11:26 PM
Last Post: snippsat
  Understanding if Statements in Python Kathleen 1 461 Mar-05-2019, 07:55 PM
Last Post: Yoriz
  new python package test ramkrishna 0 465 Feb-25-2019, 12:18 PM
Last Post: ramkrishna
  Understanding Scoping in Python yksingh1097 5 1,112 Aug-06-2018, 07:42 PM
Last Post: nilamo
  Python Iteration Understanding giteepag 3 1,032 Jul-26-2018, 02:23 PM
Last Post: perfringo
  Seeking understanding with the python import function. Intelligent_Agent0 2 851 Feb-18-2018, 11:57 PM
Last Post: snippsat

Forum Jump:


Users browsing this thread: 1 Guest(s)