Angular distribution rose diagram in Python

2019-09-27 Thread Madhavan Bomidi
Hi, Can someone help me to make python code (with some arbitrary data) for the angular distribution rose diagram as shown in figure 7 in the paper accessible through the web-link: https://www.nat-hazards-earth-syst-sci.net/17/1425/2017/nhess-17-1425-2017.pdf Thanks in advance Madhavan -- htt

Re: NEWBIE: how to get text onto 2 lines on a 16x2 lcd display

2019-09-27 Thread RobH
On 27/09/2019 04:51, Dennis Lee Bieber wrote: On Thu, 26 Sep 2019 23:04:15 +0100, RobH declaimed the following: As I said, I have downloaded the circuitpython chalcd files from the link using pip3 install, but after downloading I can't find any Adafruit folders on my pi zero. Doing a search

Recursive method in class

2019-09-27 Thread ast
Hello Is it feasible to define a recursive method in a class ? (I don't need it, it's just a trial) Here are failing codes: class Test: def fib(self, n): if n < 2: return n return fib(self, n-2) + fib(self, n-1) t = Test() t.fib(6) - Traceback (most r

How to publish a message of the qspinbox value when the qspinbox sets the slider with corresponding value.

2019-09-27 Thread Spencer Du
Hi When the values of the spinboxes is set a message should be published from the GUI containing the value from the spinbox which then sets the qlabel with the value. After this if I close and reload the gui the widgets should be set with the values set from the previous time. When the embedded

How to publish a message of the qspinbox value when the qspinbox sets the slider with corresponding value.

2019-09-27 Thread Spencer Du
Hi When the values of the spinboxes is set a message should be published from the GUI containing the value from the spinbox which then sets the qlabel with the value. After this if I close and reload the gui the widgets should be set with the values set from the previous time. When the embedde

How to publish a message of the qspinbox value when the qspinbox sets the slider with corresponding value.

2019-09-27 Thread Spencer Du
Hi When the values of the spinboxes is set a message should be published from the GUI containing the value from the spinbox which then sets the qlabel with the value. After this if I close and reload the gui the widgets should be set with the values set from the previous time. When the embedde

How to publish a message of the qspinbox value when the qspinbox sets the slider with corresponding value.

2019-09-27 Thread Spencer Du
Hi When the values of the spinboxes is set a message should be published from the GUI containing the value from the spinbox which then sets the qlabel with the value. After this if I close and reload the gui the widgets should be set with the values set from the previous time. When the embe

Re: Recursive method in class

2019-09-27 Thread Jan van den Broek
On 2019-09-27, ast wrote: > Is it feasible to define a recursive method in a class ? > (I don't need it, it's just a trial) > > Here are failing codes: > > > class Test: > def fib(self, n): > if n < 2: return n > return fib(self, n-2) + fib(self, n-1) self.

Re: Recursive method in class

2019-09-27 Thread Rhodri James
On 27/09/2019 12:54, ast wrote: Hello Is it feasible to define a recursive method in a class ? (I don't need it, it's just a trial) Here are failing codes: class Test:     def fib(self, n):     if n < 2: return n     return fib(self, n-2) + fib(self, n-1) Try self.fib(...) instea

Help to understand the data structure

2019-09-27 Thread Mohan L
Hi All, I am using get_devices_list method from this module: https://github.com/Tufin/pytos/blob/master/pytos/securetrack/helpers.py. Here is my two like code and output looks like: https://pastebin.com/K9KBeqYL I am not able to manage to further loop the data to print below output: devicename

Generate simple image on a standalone Raspberrry Pi

2019-09-27 Thread Roy Hann
I am designing a mobile application to run on a Raspberry Pi 3 model B. It will not have any Internet access. I need to generate a static image consisting of a simple arc representing (say) a speedometer or a pressure gauge. The image will need to be regenerated every 5 seconds. The image must be d

Re: Generate simple image on a standalone Raspberrry Pi

2019-09-27 Thread Thomas Jollans
On 27/09/2019 14.43, Roy Hann wrote: > I am designing a mobile application to run on a Raspberry Pi 3 model B. > It will not have any Internet access. I need to generate a static image > consisting of a simple arc representing (say) a speedometer or a > pressure gauge. The image will need to be reg

Re: Help to understand the data structure

2019-09-27 Thread Mohan L
Hi All, Please ignore it, I was able to figure out it. for dev in devlist: print (dev.name, dev.id) -- Thanks & Regards Mohan L On Fri, Sep 27, 2019 at 8:41 PM Mohan L wrote: > Hi All, > > I am using get_devices_list method from this module: > https://github.com/Tufin/pytos/blob/mast

Help Wanted for the error

2019-09-27 Thread tommy yama
Hi , Has anyone seen similar errors previously? I just encountered the error below and need to fix asap. File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/google/protobuf/descriptor_pool.py", line 175, in _CheckConflictRegister raise TypeError(error_msg) Ty

Re: Recursive method in class

2019-09-27 Thread Dan Sommers
On 9/27/19 7:54 AM, ast wrote: Hello Is it feasible to define a recursive method in a class ? (I don't need it, it's just a trial) Here are failing codes: class Test: def fib(self, n): if n < 2: return n return fib(self, n-2) + fib(self, n-1) return self.fib(n

itertools query

2019-09-27 Thread Pradeep Patra
Hi all, I have written a small program to generate all the combinations of a and b of the array. I want (6,7) tuple also included. Can anybody suggest what change I should make to get 6,7 included in my output? Any suggestions Output: [(5,), (6,), (5, 6), (7,), (8,), (7, 8)] from itertools imp

Re: itertools query

2019-09-27 Thread Peter Otten
Pradeep Patra wrote: > Hi all, > > I have written a small program to generate all the combinations of a and b > of the array. I want (6,7) tuple also included. Can anybody suggest what > change I should make to get 6,7 included in my output? Any suggestions The spec is not clear to me. If you do

Re: Angular distribution rose diagram in Python

2019-09-27 Thread Peter Pearson
On Fri, 27 Sep 2019 02:13:31 -0700 (PDT), Madhavan Bomidi wrote: > > Can someone help me to make python code (with some arbitrary data) for > the angular distribution rose diagram as shown in figure 7 in the > paper accessible through the web-link: > > https://www.nat-hazards-earth-syst-sci.net/17/

Re: NEWBIE: how to get text onto 2 lines on a 16x2 lcd display

2019-09-27 Thread RobH
On 27/09/2019 15:28, Dennis Lee Bieber wrote: On Fri, 27 Sep 2019 10:48:29 +0100, RobH declaimed the following: Ok, the adafruit_character_lcd is in the same directory as yours, and so is Blinka and Purio. It seems to be a bit of a long path to type to get to the Adafruit_Charlcd directory, bu

Re: Generate simple image on a standalone Raspberrry Pi

2019-09-27 Thread Eli the Bearded
In comp.lang.python, Roy Hann wrote: > I am designing a mobile application to run on a Raspberry Pi 3 model B. > It will not have any Internet access. I need to generate a static image > consisting of a simple arc representing (say) a speedometer or a > pressure gauge. The image will need to be r

Re: itertools query

2019-09-27 Thread Piet van Oostrum
Pradeep Patra writes: > Hi all, > > I have written a small program to generate all the combinations of a and b > of the array. I want (6,7) tuple also included. Can anybody suggest what > change I should make to get 6,7 included in my output? Any suggestions > Why (6,7)? What about (5,7), (5,8)

Re: PIP question

2019-09-27 Thread Gisle Vanem
dieter wrote: directory with some possible leftovers. It there a connection between this mysterious '-ip' package and this directory? This is possible. A so called "distribution" can install packages of a different name (for example, the distribution "Zope" installs (among others) a package "Z

Re: itertools query

2019-09-27 Thread Pradeep Patra
I don't need other combination except 6,7 On Saturday, September 28, 2019, Piet van Oostrum wrote: > Pradeep Patra writes: > > > Hi all, > > > > I have written a small program to generate all the combinations of a and > b > > of the array. I want (6,7) tuple also included. Can anybody suggest w

Re: PIP question

2019-09-27 Thread dieter
Gisle Vanem writes: > ... > All this *.dist-info stuff is alien stuff to me, but I guess > 'pip install --upgrade' uses these? Most of "pip" is using this. They contain important meta information (e.g. version number, dependencies, overview information, ...) about a distribution not directly used

Re: itertools query

2019-09-27 Thread Peter Otten
> Pradeep Patra wrote: > My idea is to include the last element of array a and first element of second array b in the final array. fr.append((a[-1], b[0])) -- https://mail.python.org/mailman/listinfo/python-list