Closed jadball closed 4 years ago
It is a "bug/feature" in ImageD11.grain. I made a bunch of stuff into "properties" and that does not allow you to set them freely (e.g. grain.u is read only). The reason is to avoid having inconsistent stuff inside the grain, if you have ub, ubi, u and b then they should all agree, or someone needs to write a set_u function and attach it. Grains have the u matrix grain.u via xfab.tools built in already now. I guess we need a patch on sandbox/match.py and some way to send a more informative error message when attempting the set attribute...
Thanks for the quick reply. Is there an easy way to calculate the ubi from the individual U11, U12, U13 etc values from a gff columnfile?
Don't worry, sorted it! I grabbed the code from xfab/scripts/gff_to_ubi.py
Hello,
Has some behaviour changed in xfab for the ubi_to_u_b function in tools?
When I call xfab.tools.ubi_to_u_b in the same way that you do in match.py:
https://github.com/FABLE-3DXRD/ImageD11/blob/3b2df5ffc6ac8e67482625fba47cb144c5947934/sandbox/match.py#L50-L54
I receive the following error message:
Unless I've finally lost it, this behaviour seems to have changed over Christmas? My script was working before.
Any ideas?
Thanks