Releases: xpdAcq/PDFstream
0.6.3
0.6.1
0.6.0
Added:
-
Add new callbacks in the
callback
package for the analysis, serialization, and visualization of the new data structure from the new xpdacq. -
Add
FileNameRender
to compose file name according to the user's request and put the filename in starts and events. -
Add
Analayzer
to process the data to XRD and PDF and save the processed data in the pyFAI standard and pdfgetx standard file and do calbration if necessary. -
Add
DarkSubtraction
to do the dark subtraction of the image in place. -
Add
AnalysisPipeline
that contains theAnalyzer
,DarkSubtraction
andPublisher
. -
Add
PlotterBase
as the basic class of the plotters. -
Add
ImagePlotter
to plot the image with or without masks and save image in files. -
Add
WaterfallPlotter
to plot the 1d array in a waterfall plot and save the figure in a file at the end. -
Add
ScalarPlotter
to plot the scalar array as a function of time or other dimensions and save the figure in a file at the end. -
Add
VisualizationPipeline
that contains theImagePlotter
,WaterfallPlotter
andScalarPlotter
. -
Add
SerializerBase
as the basic class of the serializers. -
Add
TiffSerializer
to serialize the images in tiff files. -
Add
CSVSerializer
to serialize the scalar data, time stamp and the filename of outputs in csv files. -
Add
YamlSerializer
to serialize the start document in a yaml file using thesafe_dump
. -
Add
NumpySerializer
to serialize the masks in npy files. -
Add
SerializationPipeline
that contiansTiffSerializer
,CSVSerializer
,YamlSerializer
andNumpySerializer
.
Changed:
-
Make the
callbacks
package contain all the callback classes, including the servers. -
Make the servers able to process the event data from more than one detector and multiple different calibrations in one run.
-
Make the
run_server
command start the analysis, serialization, and visualization servers separately in three children processes at the same time. -
Use logging package to stream logs from three processes to
sys.stdout
. -
Change the sections and some keys in the configuration so that users can adjust the
ANALYSIS
section in the configuration usinguser_config
key in the start doc. -
Cache the calibration data for the integration and the binners for the masking using
lru_cache
. The cache is valid through the whole session unless it is updated. -
Change the filename pattern of the output files to avoid duplicated file names from different detector images.
-
Make the time in the output event streams and the time stamps in the file names the same as the time in the input event streams.
-
Allow users to include any measured scalar data in the filename using the
user_config
keyword. -
Allow users to tune whether or not to save the figures, save any kind of data, visualize any kind of data, do the pdfgetx processing or do auto masking.
-
Allower users to tune any configuration for auto masking, pyFAI integration, and the pdfgetx.
Deprecated:
-
Deprecate the old callbacks and servers for the old data structure from the old xpdacq.
-
Deprecate the dependencies of the suitcase packages.
Removed:
- Remove
servers
package andanalyzer
package.
Fixed:
- Fix the wrong assignment of the
chi_max
andchi_argmax
.
0.5.2
0.5.0
Added:
-
Add
CalibrationExporter
, a callback to export the calibration metadata in poni files. -
Add
xpdvis
server andxpdsave
server so that the data processing, visualization and exporting can be run in parallel. -
Add
chi_2theta
in the outputs. -
Add yaml metadata output.
Changed:
-
Data emitted from AnalysisStream changes from numpy objects like numpy.ndarray, numpy.float64 to built-in python objects like list, float.
-
Reformat the exported directory structure so that it will be like the outputs from
xpdAn
. -
The format of the output files will be the same as those generated by
xpdAn
.
Fixed:
- Fixed the bugs encountered at the 28-ID-1 beamline.
0.4.7
Added:
- Add AreaDetectorTiffHandler for the xpd and lsq servers.
Changed:
-
The image data can be any array with dimensions N as long as N >= 2. The first N - 2 dimensions will be averaged.
-
Simplify the configuration for the servers.
Deprecated:
- Deprecate the background subtraction functionality because of the stability.
Fixed:
-
Use v1 databroker interface for the query of dark images info due to the broken xarray conversion in v2 databroker.
-
Fix the bug that server cannot deal with the data for which the background measurement failed.
0.4.6
Changed:
-
If there is no "calibration_md" in start document, the server will still process the diffraction image but doesn't do the integration and following step. It will use zero for the results depending on the calibration.
-
Move the data processing step to the
process_data
method inAnalysisStream
.
0.4.5
0.4.4
0.4.3
Added:
-
Add the functionality to export files in xpdan style file structure for the xpd server
-
More messages from the server including what is running and the errors from pyFAI calibration
Changed:
-
Average cli check if the directory exits, make it if not.
-
AnalysisStream injects the pdfstream version into the start document.
Fixed:
-
Fix the bug that the plot setting doesn't work in cli.
-
Fix the bug about calibration in xpd server.