I've been trying to get the tests running on Windows (Python 3.6 conda environment for tofu testing).
I've seen two problems so far.
Path to data files used by tests
It appears that the way the path to the data files is handled breaks on my setup.
If I replace _root = _here[:_here.rfind('/tofu')] in tofu/geom/utils.py by _path_testcases = os.path.join(os.path.split(_here)[0], 'inputs'), tests manage to find the correct path to data files.
Cython problems (?)
However, I then break on what I think are Cython related errors:
Error
Traceback (most recent call last):
File "C:\Anaconda3\envs\test_tofu\lib\unittest\case.py", line 59, in testPartExecutor
yield
File "C:\Anaconda3\envs\test_tofu\lib\unittest\case.py", line 605, in run
testMethod()
File "C:\Anaconda3\envs\test_tofu\lib\site-packages\nose\case.py", line 198, in runTest
self.test(*self.arg)
File "C:\Users\FL232714\Documents\Python workspace\Scripts\2019_conda packaging\tofu\tofu\tests\tests01_geom\tests01_GG.py", line 882, in test13_LOS_PInOut
ves_type='Lin', test=True)
File "tofu\geom\_GG03.pyx", line 1821, in tofu.geom._GG03.LOS_Calc_PInOut_VesStruct
ValueError: Buffer dtype mismatch, expected 'long' but got 'long long'
I'll investigate to see if I can go further (and then propose a PR).
I've been trying to get the tests running on Windows (Python 3.6 conda environment for tofu testing).
I've seen two problems so far.
Path to data files used by tests
It appears that the way the path to the data files is handled breaks on my setup.
If I replace
_root = _here[:_here.rfind('/tofu')]in tofu/geom/utils.py by_path_testcases = os.path.join(os.path.split(_here)[0], 'inputs'), tests manage to find the correct path to data files.Cython problems (?)
However, I then break on what I think are Cython related errors:
I'll investigate to see if I can go further (and then propose a PR).