diff options
| author | Sam Scholten | 2025-10-23 16:05:39 +1000 |
|---|---|---|
| committer | Sam Scholten | 2025-10-23 16:05:39 +1000 |
| commit | a74c1249a18dbb4d6a69f52ac88a7bb8f6ac0eb7 (patch) | |
| tree | d686e561b69d1aae5105cdb9905889dd6ca2b388 /examples/example_diffusion.py | |
| parent | d671e06c561337ca5a82fd9aa78a3cb089e90efc (diff) | |
| download | transivent-a74c1249a18dbb4d6a69f52ac88a7bb8f6ac0eb7.tar.gz transivent-a74c1249a18dbb4d6a69f52ac88a7bb8f6ac0eb7.zip | |
Fix examples to use correct API importsv2.0.2
- example.py: Update to use detect_from_wfm() instead of process_file()
- example_diffusion.py: Import diffusion functions from event_processor submodule
- Both examples now correctly use the v2.0.0 API structure
Diffstat (limited to 'examples/example_diffusion.py')
| -rw-r--r-- | examples/example_diffusion.py | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/examples/example_diffusion.py b/examples/example_diffusion.py index dc2d05e..8826d16 100644 --- a/examples/example_diffusion.py +++ b/examples/example_diffusion.py @@ -11,23 +11,23 @@ import numpy as np import matplotlib.pyplot as plt # Import transivent functions -from transivent import ( - process_file, - get_final_events, +from transivent import configure_logging, detect + +# Import building blocks from submodules +from transivent.analysis import ( + detect_events, + calculate_initial_background, + estimate_noise, + analyze_thresholds, +) +from transivent.event_processor import ( process_events_for_diffusion, extract_event_waveforms, calculate_msd_parallel, calculate_acf, fit_diffusion_linear, plot_diffusion_comparison, - detect_events, - calculate_initial_background, - estimate_noise, - analyze_thresholds, ) - -# Configure logging -from transivent import configure_logging configure_logging("INFO") |
