Re: [Tutor] Help with building bytearray arrays

2018-09-10 Thread Cameron Simpson
On 09Sep2018 23:00, Chip Wachob wrote: On Sat, Sep 8, 2018 at 9:14 PM, Cameron Simpson wrote: Actually he's getting back bytearray instances from transfer and wants to join them up (his function does a few small transfers to work around an issue with one big transfer). His earlier code is

Re: [Tutor] Help with building bytearray arrays

2018-09-10 Thread Chip Wachob
On Sat, Sep 8, 2018 at 9:14 PM, Cameron Simpson wrote: > On 08Sep2018 11:40, Alan Gauld wrote: >> >> On 08/09/18 03:15, Chip Wachob wrote: >>> >>> Ideally, I'd like to take the slice_size chunks that have been read >>> and concatenate them back togetjer into a long MAX_LOOP_COUNT size >>> array

Re: [Tutor] building package on mac os

2018-09-10 Thread Mats Wichmann
On 09/10/2018 05:51 AM, Steven D'Aprano wrote: > Hi Glenn, > > Sorry, I don't think many people here are experts on building packages, > especially on MacOS. You could try the "Python-List" mailing list as > well. > > I know I can't do more than offer a few vague, general questions which >

Re: [Tutor] Help with building bytearray arrays

2018-09-10 Thread Alan Gauld via Tutor
On 10/09/18 04:00, Chip Wachob wrote: > I presume that I need to instantiate an array of slice_size-sized bytearrays. Cameron has already addressed this and explained that you don't need to and if you did how to do it. I'd only add that you need to readjust your thinking when it comes to Python

Re: [Tutor] building package on mac os

2018-09-10 Thread Steven D'Aprano
Hi Glenn, Sorry, I don't think many people here are experts on building packages, especially on MacOS. You could try the "Python-List" mailing list as well. I know I can't do more than offer a few vague, general questions which may or may not point you in the right direction. See below. On

Re: [Tutor] python -m pip install vs pip install

2018-09-10 Thread Mats Wichmann
On 09/10/2018 09:10 AM, Alex Kleider wrote: > In another currently active thread Mats Wichmann recommends using: >   python -m pip install ... > vs >   pip install ... > > The question is how to install a specific version of python itself. > > I'm running Ubuntu 16.04 and have the following

[Tutor] python -m pip install vs pip install

2018-09-10 Thread Alex Kleider
In another currently active thread Mats Wichmann recommends using: python -m pip install ... vs pip install ... The question is how to install a specific version of python itself. I'm running Ubuntu 16.04 and have the following notes to myself as to how to install version 3.6 which was the

Re: [Tutor] Help with building bytearray arrays

2018-09-10 Thread Chip Wachob
Cameron, Thank you again for the insight. Yes, data_out is an equivalently-sized 'chunk' of a larger array. I'm 'getting' this now.. So, without all the fluff associated with wiggling lines, my function now looks like this: def RSI_size_the_loop(): results = [] all_together = [] # not

Re: [Tutor] building package on mac os

2018-09-10 Thread Oscar Benjamin
Hi Glen, I feel like I would be able to offer you some help but you haven't provided precise enough information for me to know exactly what your problem is. On Mon, 10 Sep 2018 at 00:02, Glenn Schultz via Tutor wrote: > > I have a package that I am working on. I am using Pycharm. The

Re: [Tutor] Help with building bytearray arrays

2018-09-10 Thread Peter Otten
Chip Wachob wrote: > Cameron, > > Thank you again for the insight. > > Yes, data_out is an equivalently-sized 'chunk' of a larger array. > > I'm 'getting' this now.. > > So, without all the fluff associated with wiggling lines, my function > now looks like this: > > def RSI_size_the_loop():

Re: [Tutor] Help with building bytearray arrays

2018-09-10 Thread Chip Wachob
Peter, I see that clue "[[". The thread history pretty much sums up what is going on up to this point. I'll cover it once more: I'm using Adafruit FT232H Breakout board and Adafruit's library. https://github.com/adafruit/Adafruit_Python_GPIO Per Adafruit's example code, I create an SPI

Re: [Tutor] Help with building bytearray arrays

2018-09-10 Thread Cameron Simpson
On 10Sep2018 10:23, Chip Wachob wrote: So, without all the fluff associated with wiggling lines, my function now looks like this: def RSI_size_the_loop(): results = [] all_together = [] # not certain if I need this, put it in in an attempt to fix the incompatibility if it existed You

Re: [Tutor] Help with building bytearray arrays

2018-09-10 Thread Alan Gauld via Tutor
On 10/09/18 19:15, Chip Wachob wrote: > So I see why my .join() isn't working. I'm not sure how to fix it though. I already showed you the sum() function. It can take a list of lists and add them together end_array = sum(results,[]) > My background is in C and other 'historical' languages,