Re: [Tutor] Multiprocessing with many input input parameters

2019-07-12 Thread Shall, Sydney via Tutor
Thanks Mike, But I am still not clear. do I write: def f([x,y,z]) ? How exactly do one write the function and how does one ensure that each positional argument is accounted for. Dr. Sydney Shall Department of Haematological Medicine King's College London 123 Coldharbour Lane London SE5 9NU ENG

[Tutor] Multiprocessing with many input input parameters

2019-07-10 Thread Shall, Sydney via Tutor
I am using MAC OS X 10.14.5 on a MAC iBook I use Python 3.7.0 from Anaconda, with Spyder 3.3.3 I am a relative beginner. My program models cell reproduction. I have written a program that models this and it works. Now I want to model a tissue with several types of cells. I did this by simply r

Re: [Tutor] Trouble Downloading To MacOS Mojave 10.14.3 released mid 2014

2019-03-13 Thread Shall, Sydney via Tutor
On 13/03/2019 14:11, Paul McCombs wrote: > On Wed, Mar 13, 2019, 5:05 AM Robert Landers wrote: > >> Hello Tutor, >> >> I am having trouble finding a python 3.7.2 download for my MacOS Mojave >> 10.14.3 released mid 2014. >> I would like to use Xcode to learn python. >> >> Is my OS too old? >> >>

Re: [Tutor] Trouble Downloading To MacOS Mojave 10.14.3 released mid 2014

2019-03-13 Thread Shall, Sydney via Tutor
On 13/03/2019 14:11, Paul McCombs wrote: > On Wed, Mar 13, 2019, 5:05 AM Robert Landers wrote: > >> Hello Tutor, >> >> I am having trouble finding a python 3.7.2 download for my MacOS Mojave >> 10.14.3 released mid 2014. >> I would like to use Xcode to learn python. >> >> Is my OS too old? >> >>

Re: [Tutor] problem with creating paths

2018-10-17 Thread Shall, Sydney via Tutor
On 17/10/2018 18:18, Mats Wichmann wrote: On 10/17/2018 10:07 AM, Shall, Sydney via Tutor wrote: Firstly, I would like to thank Steven for reminding me of the assert statement. I should have remembered this. It allowed me to isolate the problem, which predictably (for me) was very elementary. I

Re: [Tutor] problem with creating paths

2018-10-17 Thread Shall, Sydney via Tutor
Firstly, I would like to thank Steven for reminding me of the assert statement. I should have remembered this. It allowed me to isolate the problem, which predictably (for me) was very elementary. I am too embarrassed to say how simple the error was. However, my original problem was not solved

[Tutor] problem with creating paths

2018-10-17 Thread Shall, Sydney via Tutor
I can now add to my previous email the following observation. If I do not delete the output file and redo the test I get the following as the 'extra' entry in paths: '/Users/sydney/AnacondaProjects/capital_reproduction/Current_Version/Results/20181017D/B_Cycle_Zero/Text_Files') If however, I

[Tutor] problem with creating paths

2018-10-17 Thread Shall, Sydney via Tutor
I am a novice (at programming). I use MAC OS 10.13.6 Anaconda. Python 3.5.4 Spyder 3.5.6 I have just re-written a moderately complex program (a Class) on the advice of Alan and Steven. The rewriting proved to be very useful. The working program uses instances of the Class with User chosen par

[Tutor] Spyder - How to determine files that appear at start-up

2018-10-08 Thread Shall, Sydney via Tutor
My question concerns Spyder. I know that this is a Python list, but I also see that some people here also use Spyder. So, please forgive me. My problem is simple. I cannot find out how I can determine the set of files that open at start-up. I am annoyed by the fact that I must manually load my

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

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