raysect / source

The main source repository for the Raysect project.
http://www.raysect.org
BSD 3-Clause "New" or "Revised" License
88 stars 23 forks source link

MulticoreEngine broken in Python3.6 #303

Closed mattngc closed 5 years ago

mattngc commented 5 years ago

Doing some work with latest dev, just noticed the MulticoreEngine is broken in python 3.6 after the merge with some improvements from @CnlPepper. I believe its because time.time_ns() is a new function in python 3.7. Might be better to calculate this manually and make a note to convert to the new function once we abandon support for 3.6.

~/raysect/demos/observers$ python mesh_power.py Starting observations with volume emitter... Process Process-1: Traceback (most recent call last): File "/home/matt/anaconda3/lib/python3.6/multiprocessing/process.py", line 258, in _bootstrap self.run() File "/home/matt/anaconda3/lib/python3.6/multiprocessing/process.py", line 93, in run self._target(*self._args, **self._kwargs) File "/home/matt/raysect/raysect/core/workflow.py", line 240, in _producer start_time = time.time_ns() AttributeError: module 'time' has no attribute 'time_ns'