Skip to content

Releases: xpdAcq/PDFstream

0.6.3

05 Oct 20:08
Compare
Choose a tag to compare

Fixed:

  • remove last rogue deprecated np.bool

0.6.1

26 Sep 18:29
df11a1c
Compare
Choose a tag to compare

Added:

  • Add the options publish to disable publishing to the proxy.

Fixed:

  • Fix the "python list doesn't have shape" bug when loading masks in python lists.

  • Fix the databroker v2.0 API bugs in tests.

0.6.0

15 Jul 16:55
c44e8c5
Compare
Choose a tag to compare

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 the Analyzer, DarkSubtraction and Publisher.

  • 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 the ImagePlotter, WaterfallPlotter and ScalarPlotter.

  • 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 the safe_dump.

  • Add NumpySerializer to serialize the masks in npy files.

  • Add SerializationPipeline that contians TiffSerializer, CSVSerializer, YamlSerializer and NumpySerializer.

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 using user_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 and analyzer package.

Fixed:

  • Fix the wrong assignment of the chi_max and chi_argmax.

0.5.2

16 Dec 21:57
bde0561
Compare
Choose a tag to compare

Fixed:

  • The waterfall plot will be auto scaled after each update and delete.

0.5.0

15 Oct 17:16
dcd9a36
Compare
Choose a tag to compare

Added:

  • Add CalibrationExporter, a callback to export the calibration metadata in poni files.

  • Add xpdvis server and xpdsave 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

18 May 23:51
3d7475d
Compare
Choose a tag to compare

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

09 Apr 17:47
27a1f3f
Compare
Choose a tag to compare

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 in AnalysisStream.

0.4.5

20 Jan 17:14
09bda56
Compare
Choose a tag to compare

Added:

  • Allow users to use their own mask by adding the file path in the metadata of the run

  • Allow users to disable auto masking by using the metadata of the run

0.4.4

18 Jan 20:00
48c6392
Compare
Choose a tag to compare

Added:

  • An xpdvis server that plots figures of analyzed data from xpd server.

0.4.3

15 Jan 18:27
3b4d07d
Compare
Choose a tag to compare

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.