Welcome to xpdAn’s documentation!¶
Introduction¶
To post questions about anything XPD, including software, and to see archived answers, please join the XPD-Users Google group
xpdAn is a Python package that aids data analysis at the XPD beamlime.
The goal of the xpdAn package is to simplify your analysis workflow during beamtime,
so that you can focus more on the scientific aspects of your experiment.
To get started, please go to Quick Start
If you have suggestions for new features in xpdAcq, or want to report a bug or simply ask a question about the software, please post it as a new thread at XPD-Users
Contents:
- xpdan package
- Subpackages
- Submodules
- xpdan.999-load module
- xpdan.callbacks module
- xpdan.data_reduction module
- xpdan.data_reduction_core module
- xpdan.db_utils module
- xpdan.dev_utils module
- xpdan.fuzzybroker module
- xpdan.glbl module
- xpdan.glbl_gen module
- xpdan.tools module
- xpdan.utils module
- Module contents
Change Log¶
v0.8.0¶
Added:
xpdan.startup.instensity_serverfor tracking positions in 1D patternspeak position and width server
intensity server to setup.py
stage_blacklistto analysis server, allowing for speedups by not passing large arrays back to the proxy.xpdan.vend.callbacks.mpl_plotting.SavePlotscallback for saving plots when a scan is finishedsave_folderkwarg for viz server. If provided save figures
Fixed:
analysis_serverkwargs are properly passedanalysis server reuses diffraction pipeline (getting rid of memory issues)
v0.7.0¶
Added:
Pull detector name from descriptor if possible
Analysis system for radiograph data processing
Routers for diffraction and radiograph analysis
zscorekwarg to analysis pipeline
v0.6.0¶
Added:
Add
inbound_proxy_addressso we can access the publisher at runtimeAdd
qoi_serverCLI and module for computing various quantities of interestAdded amorphsivity to QOIs
Support for 3D pencil beam reconstructions
Support for Registry backed full field reconstructions
ctPDF_example.pyexample for pencil beam
Changed:
Use
image_fieldsfor loading the imagestomo_example.pyruns on a registry backed detector
Fixed:
Pencil beam no longer tries to run independent var reconstructions
v0.5.2¶
Fixed:
Image streams specifically listen to the primary event stream
AlignEventStreamwith the raw data listens to the primary event stream
v0.5.0¶
Added:
Units for most reduced data streams (mostly so waterfall can plot them)
Added
plot_graphto analysis server so we can visualize the graph
Changed:
Use
dark_frame=Trueto determine if a scan is a dark scan. This means that scans without darks can now be processed, although they will use the most recenlty cached dark.raw_strippedis run first, so all the aligned data can be emitted ASAP. This means that data can be saved as soon as it is created, rather than waiting for the last data to be processed.Simplified the plotting via the new
LiveWaterfallcallback.Support
original_start_uidsystemuse raw start document time for file naming
v0.4.1¶
v0.4.0¶
Added:
analysis server for running analysis in an external process without saving or visualization
DB server for saving data into databrokers
ExportCallbackfor copying data for databroker exportRetrievecallback for accessing data from resources and datumsReturnCallbacka callback which always returns name document pairsRunRouterwhich allows us to make pipelines on the flyServer for handling saving of data
Tests for the servers
All the callbacks from
bluesky
Changed:
Chunk the analysis pipelines into pieces so they can be composed
StartStopCallbackalso reports the analysis time for diagnosticsMultiple detectors are supported for the main processing pipeline note that this does not support multiple detectors at the same time.
StartStopCallbacknow prints event analysis timesMoved file saving print statements closer to saving action
Moved
hinted_fieldsto thexpdan.vend.callbacks.coreBestEffortCallbackhas a teardown kwarg for managing figures at the end of a run, preventing us from having too many windows open.
Fixed:
Removed
sanitize_npfrom zmq system.
Authors:
Christopher J. Wright
v0.3.6¶
Fixed:
Both the foreground dark and foreground light are properly pulled based off their stream names
v0.3.5¶
Fixed:
Restore calib saving
Make certain that files are saved before additional analysis is performed. This should make the pipeline more robust to analysis failures near the end of the pipeline.
xpdan.callbacks.StopStartCallbackto be no-stop doc tolerantconftest.pynow properly reports abt_uidxpdan.db_utils.query_darknow always returns a list
v0.3.3¶
Fixed:
Splay out args for calibration saving properly
Pull calibration information from
dSpacings
v0.3.1¶
Added:
Add print statement for server startup
Changed:
metadata now stored into its own folder
Fixed:
Files saved in sub dir of
tiff_baseFilter out
Noneproduced byFillerondatum/resourcedocs
v0.3.0¶
Added:
Fillerandclear_combine_latesttopipeline_utilsTests for main pipeline
Support for QOI plotting
start_analysisfunction for starting theRemoteDispatcherand pushing data through the pipeline live
Changed:
db_utilsquery functions signatures are now reversed (docs first, db second)Simplified
render_and_cleanMainCallbackanalysis_stagesyntax in line with pipelineconftestdatabroker now reports raw dictsSeparated saving, visualization, and QOI pipeline chunks
Darks and Backgrounds are zeroed out at start of scan in case scan has no dark or background.
Removed:
xpdan.toolsis now inxpdtools.toolsshimmodule is now inxpdtools
Fixed:
Analysis pipeline now runs on xpdtools pipeline
v0.2.3rc¶
Changed:
xpdAcq now outsources ``glbl` configuration management to xpdConf
Use conda-forge
xpdconffor CI builds
Removed:
load_configuration(which is now in xpdConf)
v0.2.2¶
v0.2.1¶
Added:
Requirements folder
push_tagto reverFlexible folder tag
Add rever changelog activity
Speed up masking via median based sigma clipping
Z score visualization to callback pipeline