jtlz2

Results 60 comments of jtlz2

In executor.py I tried to replace `concurrent.futures.ProcessPoolExecutor` with `loky.get_reusable_executor`, but this throws up context problems: ``` RuntimeError: Working outside of application context. This typically means that you attempted to use...

I am tracking this in a SO question at https://stackoverflow.com/questions/58093735/flask-how-do-i-successfully-use-multiprocessing-not-multithreading So far I can get flask-executor working well, but without opencv. Assuming Loky can handle the latter problem, can flask-executor...

@dchevell Very glad to have come across your module after a morning of learning and eventually discovering that Flask can't support Process Pool Execution. Re your comment above, do you...

Sorry to be a pain, @casperdcl Is there any chance of an ETA for this super-awesome feature?! Thanks!

@taleinat Apologies - macOS 10.13.6.. We are trialling it for OCR post-processing. The error comes out the same when using bytes as you suggest (ValueError at L71). Thanks again!

@taleinat Still get the same problem in 0.7.3 :\

PS: I suppose I could add a routine to the prior or likelihood functions to do this - is that the best way forward?

Thanks for the speedy reply. Happy to test - I want to try dump_callback - could you give a simple example of the syntax? Something like: pymultinest.run(..., dump_callback=func) func(???): print...

Thanks - so I get an error with dump_wrapper: ``` evidence_tolerance=0.5,mode_tolerance=-1e90,dump_callback=func) ``` File "/Library/Frameworks/EPD64.framework/Versions/7.2/lib/python2.7/site-packages/pymultinest-0.1-py2.7.egg/pymultinest/run.py", line 187, in run lib.set_dumper(dumper_type(dump_wrapper)) NameError: global name 'dump_wrapper' is not defined I tried setting the...

Now I get (1000 live points): Acceptance Rate: 0.847836 Replacements: 1900 Total Samples: 2241 ln(Z): -88079.423159 Acceptance Rate: 0.838710 Replacements: 1950 Total Samples: 2325 ln(Z): -77446.214381 converting for access ......