Examples#
This section provides a collection of practical examples demonstrating various use cases and features of pipefunc.
Basic Usage#
Skip this if you did the tutorial!
We recommend to look at the Physics Simulation example after the tutorial to get a hands-on introduction to the library.
Basic Pipeline: A simple example showing how to create and run a basic pipeline.
Uses:
pipefunc(),Pipeline, sequential execution (pipeline(),run())
Scientific Computing#
Physics Simulation: Demonstrates a physics-based simulation using
pipefunc.Uses:
pipefunc(),Pipeline,mapspec(N-dimensional sweeps, zip, reduction),add_mapspec_axis(),load_outputs(),load_xarray_dataset(),nest_funcs(),NestedPipeFunc
Weather Simulation and Analysis: Example of generating and analyzing weather data with
xarray.Uses:
pipefunc(),Pipeline,mapspec(N-dimensional sweeps),load_xarray_dataset(), parallel execution (map())
Data Processing#
Sensor Data Processing: A pipeline for processing sensor data, including filtering, feature extraction, and anomaly detection.
Uses:
pipefunc(),Pipeline,add_mapspec_axis(),load_xarray_dataset(),subpipeline(), parallel execution (map())
Image Processing Workflow: Demonstrates a workflow for image processing, including segmentation and classification.
Uses:
pipefunc(),Pipeline,mapspec(element-wise operations),load_outputs(), parallel execution (map())
NLP Text Summarization: An example of a natural language processing pipeline for text summarization.
Uses:
pipefunc(),Pipeline,mapspec(element-wise operations, reduction), parallel execution (map())