-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Data are transposed if passed as python dicts #15
Comments
I did some more investigation. I put a couple of printf's in the
Now, if I use this code model = 6
N_size = 512
#specify a full path to the parameters file
pathTP = '../../functions/models/Phantom2DLibrary.dat'
#This will generate a N_size x N_size phantom (2D)
phantom_2D = TomoP2D.Model(model, N_size, pathTP) We get this output:
It means that the call at line 238 gets the parameters in the order we are expecting, while the code at line 52 has the This code I was developing extracts these parmeters
So |
Now, I've done a wild guess and swapped |
a new capability of creating new object is added, issues have been fixed including the current one |
in branch typecheck, passing model/object parameters as python dicts results in a transposition of the model/object.
![image](https://user-images.githubusercontent.com/14138589/37462427-ccf4803a-2849-11e8-9522-2369652a210e.png)
running https://github.com/dkazanc/TomoPhantom/blob/typecheck/python/Demos/DemoModel2.py
instead of https://github.com/dkazanc/TomoPhantom/blob/typecheck/python/Demos/DemoModel.py
![image](https://user-images.githubusercontent.com/14138589/37462442-da463260-2849-11e8-87b9-ef648ad16f12.png)
The text was updated successfully, but these errors were encountered: