-
Notifications
You must be signed in to change notification settings - Fork 25
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
Problems with pars in notebooks #329
Comments
@haixing0a can you please confirm that you're using the latest notebooks from git master?
|
I broke that. Not sure if I remember why? |
Or it might not be me - I can't read git history. Looks like this one: c066ed7#diff-4b57e38df8ad163dfd1918781b95543a751ccf94e23e9849da31865c626ea033L631 Anyway - please don't revert - when I open the cf_4f from ImageD11.sinograms.properties I want the raw peaksearch output with nothing added. Call dataset.update_colfile_pars or just fix the notebook to load and use the parameters. |
The current implementation in |
I suspect an older notebook is being used |
Unrelated, but before I forget: the https://github.com/FABLE-3DXRD/ImageD11/blob/master/ImageD11/nbGui/S3DXRD/1_S3DXRD_index.ipynb
|
I'm not sure I know what the problem is here. When we call |
James, sorry, I think I was using a notebook from the version 1.5 week ago which still uses .par for parameters. I realized the the newest notebook needs json file to contain different pars now. |
@haixing0a no problem, easy to do! I think between the three of us we need to think of better ways of setting up the notebooks for a new experiment - perhaps moving them to a new git repo, and always having a checkout of the latest notebooks somewhere in |
In general: the peak positions in cf_4d only need to know the detector parameters - then saving the cf_4d will not depend on the phase id. It will mean adding a unitcell or phase_name argument for |
This is what I did for now - see 06fae6b I agree that columnfiles being phase-aware is confusing and messy. Personally I think columnfiles should not have parameters at all, to avoid duplication of parameters objects in memory (where you modify one but forget about the other, etc etc) |
The reason to put the detector parameters in with the peaks is so that you can have several columnfiles and each one has it's own calibration (e.g. hydra arrangements). Loading one parameters object and then saving a pointer avoids the duplication (e.g. colfile.parameters = shared_parameters ). |
Originally posted by @haixing0a in 3eb8107
The text was updated successfully, but these errors were encountered: