DCC-Lab / PyTissueOptics

A very simple, fairly slow but very easy to understand and very easy to use Monte Carlo code for Tissue optics simulations.
MIT License
27 stars 5 forks source link

Default to hardware acceleration #94

Closed JLBegin closed 1 year ago

JLBegin commented 1 year ago

Since we correctly warn and guide the user when hardware acceleration is not available, setting it as the default now makes sense.

I also updated the examples to use a lower photon count when hardware acceleration is not available. This is done by checking the new public method: hardwareAccelerationIsAvailable(). Updated the Readme accordingly and merged a few old examples together.