-
Notifications
You must be signed in to change notification settings - Fork 8
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
Fixed outport bug and added tomography #41
Conversation
This needs to be rebased onto current master as there is a conflict that can not be auto-merged. |
|
||
Parameters | ||
---------- | ||
dataset : array_like |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not correct, array-like objects do not have a method correct_drift
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This note applies to basically every doc string ;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The dataset is a XTomoDataset type, which is of course not one of existing types in VisTrails. To pass the format testing, I have to choose array_like. Do you know any better solution?
Let me try to fix the conflict. |
I think we either need to not use their Having a single mutable object that you make sequential calls on is very much against the view of the world that vistrails has (it is, at it's core, a functional language). One of the design principles of skit-xray is to only use 'base' (core python + numpy) types as inputs/outputs of user-exposed functions. |
In that sense, vistrails is unique being a functional language in the OO world.... I agree with that design principle of skit-xray about using only base types. So how about this: 1. let me first put variable type instead of array_like, and demo it to Wah-Keat and others (I need his opinion about the functional benefits i.e. is it what he wants, if he wants more functions, requirements, etc.). 2. modify the code and pass around just ndarrays. This strategy should make sure the tomo package is on the right track and also it is coded in the right way. |
From talking to Doga in April, I am pretty sure that there are clean functions underneath, the I think I will back the default value changes off of the wrap_extension branch (as it is broken for reasons I don't understand) so we can get that merged, which will make it easier to deal with arbitrary class mappings in VT. |
It really depends on how much time to spend on digging out their data structure and understand their code. They did marshaling to make it more OO look. So by passing the XTomoDataset object, we won't have huge number of parameters associated with each function call. It is less frustrating in users perspective though. I'd say, for plan A, let's treat our usage of tomopy as application level. This way it gains more time for us to focus on the usability of these functions. Once this is OK, let's go for plan B, which we care as development team, but the beamline scientists don't. Let's talk in details when we meet next time. |
Merge remote-tracking branch 'upstream/master'
After I merged, got a new error when loading NSLS-II module in vistrails:
Any idea? |
You need to update skxray and probably lmfit. Aren't moving parts fun? |
Both have conda packages built on my channel |
Oops... after updating skxray, the same error showed up the other day shows up again...
|
sigh, try doing a |
and you did some sudo install stuff while installing fftw or are you using system fftw? |
Yes, I did sudo install. The fftw3f package seemed to be a separate one...
|
We should avoid using anything with sudo a) to avoid clashing with the sysadmin on the beam line computers b) because not all users have sudo rights. could you also try installing |
You can't imagine how much time I spent on installing tomopy.... Sure will try that.
|
We should also avoid inflicting that amount of pain on our users ;) |
Tried install glibc. Now have |
@celiafish Is this different than your other PR? |
This was an old PR. The useful one is fixing outport bug part. Other than that you can simply ignore this one. |
No description provided.