Migration from McData*¶
McSAS3 now uses canonical MoDaCor-style ProcessingData / DataBundle / BaseData
carriers throughout the maintained core API.
This is a breaking change.
What changed¶
McData,McData1D, andMcData2Dare no longer part of the maintained core package.The old
measData/measDataLinkvocabulary has been replaced by canonical selected-stage handling onProcessingData.New result files store canonical
processingDatarather than duplicated legacy stage groups.
Old to New Mapping¶
McData1D(...).from_file(...).prepare(): useprepare_1d_processing_data_from_file(...)McData2D(...).from_file(...).prepare(): useprepare_2d_processing_data_from_file(...)manual in-memory
McData1Dconstruction: useprepare_1d_processing_data(...)manual in-memory
McData2Dconstruction: useprepare_2d_processing_data(...)mcd.store(...)/mcd.load(...): usestore_result_processing_data(...)/load_result_processing_data(...)mcd.measData: useselected_bundle_from_processing(processing)mcd.clip(),mcd.omit(),mcd.reBin(): use the helpers inmcsas3.preprocessing
Minimal Example¶
Instead of:
# old style, no longer maintained
# mcd = McData1D(...)
# mcd.prepare()
Use:
from mcsas3 import prepare_1d_processing_data_from_file, selected_bundle_from_processing
processing = prepare_1d_processing_data_from_file(...)
analysis_bundle = selected_bundle_from_processing(processing)
Notes¶
The canonical internal units are
1 / nmforQand1 / (m sr)for intensity.Input units are normalized at ingestion time.
If you need the current code structure overview, see Structure.