Re: [Tutor] Python programming help!

2018-09-23 Thread V E G E T A L
Wow, didn't know attachments didn't work. I had posted my screenshot as an attachment, never expected you to read my mind. I solved the problem, it was a spelling mistake (I know, I'm stupid). Thank a lot though! Στις Κυρ, 23 Σεπ 2018 - 16:25 ο χρήστης Bob Gailer έγραψε: > On Sep 23, 2018 3:33 A

Re: [Tutor] Python programming help!

2018-09-23 Thread Carlton Banks
Without having Seen the code, use og statements.. but please provide is the code... søn. 23. sep. 2018 15.26 skrev Bob Gailer : > On Sep 23, 2018 3:33 AM, "V E G E T A L" > wrote: > > > > Hello folks! So, I'm pretty much a noob still experimenting with basic > > commands. I wanted to make a code

Re: [Tutor] Fwd: How to roughly associate the values of two numpy arrays, or python lists if necessary

2018-09-23 Thread Shall, Sydney via Tutor
On 23/09/2018 13:04, Peter Otten wrote: Peter Otten wrote: Maybe you could sort the already-sorted property_b again, with some random offset: import itertools def wiggled(items, sigma): ... counter = itertools.count() ... def key(item): return random.gauss(next(counter), sigma) ...

Re: [Tutor] Fwd: How to roughly associate the values of two numpy arrays, or python lists if necessary

2018-09-23 Thread Shall, Sydney via Tutor
On 23/09/2018 10:42, Peter Otten wrote: Shall, Sydney via Tutor wrote: What I want is the following. I have: property_a = [1, 6, 2, 4] property_b = [62, 73, 31 102] Result should approximately be: property_b = [31, 102, 62, 73] That is both lists change in value in exactly the same order

Re: [Tutor] Python programming help!

2018-09-23 Thread Bob Gailer
On Sep 23, 2018 3:33 AM, "V E G E T A L" wrote: > > Hello folks! So, I'm pretty much a noob still experimenting with basic > commands. I wanted to make a code that checks if the value of one variable > is less, equal or greater than the other. Pretty simple right? But then, > this problem emerged

Re: [Tutor] Fwd: How to roughly associate the values of two numpy arrays, or python lists if necessary

2018-09-23 Thread Peter Otten
Peter Otten wrote: > Maybe you could sort the already-sorted property_b again, with some random > offset: > import itertools def wiggled(items, sigma): > ... counter = itertools.count() > ... def key(item): return random.gauss(next(counter), sigma) > ... return sorted(items,

Re: [Tutor] Fwd: How to roughly associate the values of two numpy arrays, or python lists if necessary

2018-09-23 Thread Peter Otten
Shall, Sydney via Tutor wrote: > What I want is the following. > > I have: > > property_a = [1, 6, 2, 4] > > property_b = [62, 73, 31 102] > > Result should approximately be: > > property_b = [31, 102, 62, 73] > > That is both lists change in value in exactly the same order. > > Now, this is e

Re: [Tutor] Python programming help!

2018-09-23 Thread Mark Lawrence
On 21/09/18 16:12, V E G E T A L wrote: Hello folks! So, I'm pretty much a noob still experimenting with basic commands. I wanted to make a code that checks if the value of one variable is less, equal or greater than the other. Pretty simple right? But then, this problem emerged. I would really l

Re: [Tutor] Best solution to modifying code within a distributed library

2018-09-23 Thread Chip Wachob
Looks like I'm golden in this regard. My first path element is '' which is what I'd want if I'm including a modified library. Thank you, On Thu, Sep 20, 2018 at 6:14 PM, Mats Wichmann wrote: > On 09/19/2018 09:59 PM, Chip Wachob wrote: >> Mats, >> >> Silly question here.. >> >> But after usin

Re: [Tutor] Fwd: How to roughly associate the values of two numpy arrays, or python lists if necessary

2018-09-23 Thread Shall, Sydney via Tutor
On 21/09/2018 00:01, Oscar Benjamin wrote: Sydney wrote and Alan forwarded: I have, I suspect, an elementary problem that I am too inexperienced to resolve. I have two numpy arrays, each representing the values of a specific property of a set of cells. Now, I want to associate the two values

[Tutor] Python programming help!

2018-09-23 Thread V E G E T A L
Hello folks! So, I'm pretty much a noob still experimenting with basic commands. I wanted to make a code that checks if the value of one variable is less, equal or greater than the other. Pretty simple right? But then, this problem emerged. I would really love some help, since I'm stuck and can't f