Indeed I agree, this should be updated. I tried to find a command that was able to find the file's directory. For some reason, python is perfectly fine with finding the files referenced in the import section as long as they on the root of the cwd, but not able to find the other files unless their directory is fully specified.

I was hoping, you @forcaeluz or any of you had a solution for it. Currently looking into the sys.path module, but still only found the cwd. I have little experience in these matters in python any of you having a neat solution? Thanks!

----- Reply message -----
From: "forcaeluz" <notifications@github.com>
To: "faitdivers/pyao" <pyao@noreply.github.com>
Cc: "larsvl" <larsvl@live.nl>
Subject: [pyao] WFG (#44)
Date: Mon, Jun 2, 2014 11:07


> +        'noApertx': 5,
> +        'noAperty': 5
> +        }
> +        zernikeModes = [2,4,21]
> +        zernikeWeights = [0.5,0.25,-0.6]
> +
> +        zw = ZernikeWave()
> +        zw.addMode(zernikeModes, zernikeWeights)
> +        wf = zw.createWavefront(paramt['numImagx'],paramt['numImagy'])
> +        Z,A = zw.decomposeWavefront(wf)
> +
> +        testResult = allclose(reshape(A,(1,len(A))), zw.getWeights())
> +        self.assertTrue(testResult)
> +
> +    def testNollMapping(self):
> +        data = load(os.getcwd()+'\Documents\GitHub\pyao\src\WFG\indexTestData.npy')

See previous comment about paths.

---
Reply to this email directly or view it on GitHub:
https://github.com/faitdivers/pyao/pull/44/files#r13275812