Python for bridging between researchers and service operators: from CFFI to Jupyterhub
summary
A Python wrapper called PySWIFT exposes a C++ hydrology engine (SWIFT v2) through its C API and CFFI, wrapping about 150 functions and sharing memory via numpy and CFFI values._cdata so arrays are modified in place without copies. A JupyterHub notebook environment lets modellers launch simulations, inspect ensemble runs (demo uses 3 members but production can be thousands producing ~100,000 time series), run calibration on the multi threaded core, and it works end to end.
AI-written summary · about
chapters (11)
- 0:00Introduction
- 0:58What is Swift
- 3:50Swift features
- 5:41Typical use case
- 6:46Swift
- 7:14Interactive views
- 8:08Ensemble forecasts
- 8:44Jupyterhub
- 12:33C interface
- 18:15Summary
- 19:05Questions
related talks
33mPython for Water Forecasting Services
29mModernizing Legacy: Wrapping a 25+ Year Computational Fluid Dynamics Codebase
49mPython for High Performance and Scientific Computing
49mMeteorology, Climate and Python: desperately trying to forget technical details
31mUsing Python to drive Australian water availability forecasting
01h 18mKeynote
25mpypet: A Python Toolkit for Simulations and Numerical Experiments
16mPyHDL-IF: An Easy-to-Use Python/HDL Cross-Calling Interface
