-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
UC1: sequential refinement of time-series data (slow data acquisition)
- Cheng Hung is collecting T-dependent data at the beamline. files are appearing in "collection" directory (CD) as a function of time. He wants to refined the data to a model.
- Cheng copies the relevant CIF file into CD
- Cheng has a single PDF from the sample and copies that into the directory
- Cheng does an initial refinement to get starting parameters.
- diffpy.cmi script saves the parameters into a text file
- Cheng starts PDFbl.sequential (seq)
- Cheng starts the measurement
- PDFbl saves PDFs into CD
- seq monitors CD
- When a new PDF appears, seq runs a new refinement and saves the results to a database file. initial values from previous refinement.
- When run is over, Cheng stops seq
UC2: sequential refinement of existing files
- As UC1.1 - 1.5
- Cheng starts seq in batch-mode
- seq collects time-stamps from each PDF in the directory
- seq runs refinement on each PDF in sequence reusing refined values as initial. Outputs written to database file.
UC3: rerunning
- As UC2 but refinements have already been run before
- seq mints a new uuid as _id for this refinement
- seq records new metadata (time, username, etc)
- seq refines sequence, results are appended to the database file without overwriting
UC4: cheng decides sequence
- As UC2.1
- Cheng specifies the metadata field that will be used for sequence
- Cheng starts seq
- seq mints a new uuid as _id for this refinement
- seq records new metadata (time, username, etc)
- seq refines sequence, results are appended to the database file without overwriting
==========================================
Review of refinement results
UC1:
- seq finishes sequence and plots Rw vs. sequence_index
UC2:
- Cheng specifies metadata key to plot
- seq finishes sequence and plots CD[key] vs. sequence_index
UC3:
- As UC2.1
- Cheng specifies sequence key to plot
- seq finishes sequence and plots CD[key] vs. sequence[key]
UC4:
- Cheng wants to view fit vs data + diff.
- Cheng specifies sequence_index
- seq plots fit, data, diff offset for the provided index
UC5.
- As UC4 but Cheng want to see the fits as they progress
- Cheng selects first fit to plot
- seq makes the plot
- Cheng hits down-arrow
- seq plots the next fit in the same panel but removing the previous one like a movie.
UC6
- Cheng wants to do something fancy with plotting
- Cheng specifies a refinement ID
- seq loads all the cgr, gr and diff curves into jupyter
UC7
- Cheng wants to search CD for the refinement he wants
- Cheng makes a database query on the metadata in a way that allows him to find the uuid of the right fit
- seq returns the requested UUID
UC8
- Cheng wants to look a the most recent one
- Cheng specifies sequence as -1 instead of having to know the uuid
UC9: live plotting
- while running refinement-UC1, seq opens two panels. One plots Rw vs sequence index and the other plots fit/data/diff for the last finished refinement
- Cheng writes his fancy script to do what he likes.
=====
non-plotting post-analysis
UC1
- Cheng notices the 5th scan didn't converge correctly and wants to rerun it
- Cheng has a way to quickly extract the parameters and settings to do that without writing a huge long script
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels