bloc.dwsim_compat#
DWSIM Compatibility Module.
Import this module at the beginning of DWSIM scripts to automatically handle Python.NET compatibility issues, particularly with print statements.
- Usage:
import bloc.dwsim_compat # This line fixes all DWSIM issues
# Now use bloc normally from bloc.test import defaults, default_simulation config = defaults() sim = default_simulation(**config)
See spark-cleantech-l3/bloc#134 and the corresponding Pull-Request for details.