Timeline for Reading datasets from files to lists
Current License: CC BY-SA 3.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 12, 2014 at 20:35 | comment | added | Mikic | After a sleepless night I figured out how the program should work. Added correct, in my opinion, code in question. Sadly increase was not as great as I expected (only 2 times), but the fact of proper work encourages. Unfortunately, I can not mark your answer as helpful, "experience" is not enough, but you was absolutely right. Also sorry, don't understand how "itertools" should works. | |
Jan 12, 2014 at 0:05 | history | edited | ChrisWue | CC BY-SA 3.0 |
fixed bug
|
Jan 12, 2014 at 0:04 | comment | added | ChrisWue |
should have been xrange(ncp) , fixed
|
|
Jan 11, 2014 at 23:46 | comment | added | Mikic | for unknown (so far) reason I get an error "jobs = [job_server.submit(rxx_func, (magn,(i-1)*slice_size, slice_size), (), ()) for i in ncp] TypeError: 'int' object is not iterable". But, as your code is example I should figure it out by myself, because your approach, I think, is quite right and optimization should keeps in that way. Thank you! | |
Jan 11, 2014 at 23:15 | vote | accept | Mikic | ||
Jan 11, 2014 at 17:52 | comment | added | ChrisWue | @Mikic: True, I missed that, I changed my example code. | |
Jan 11, 2014 at 17:52 | history | edited | ChrisWue | CC BY-SA 3.0 |
fixed code
|
Jan 11, 2014 at 14:06 | comment | added | Mikic | Yes, your main idea is brilliant and right, thank you. But for this task these usage will provide wrong results, because for one RXX value calculation needs using whole list of terms (all magn list). But every RXX value can be calculated differently, there is no dependance between RXX[1] and RXX[200]. So for now I trying understand how make ParallelPython do this. | |
Jan 11, 2014 at 10:17 | history | answered | ChrisWue | CC BY-SA 3.0 |