to_OptimizationFlag

tenpy.tools.optimization.to_OptimizationFlag(level)[source]

Convert strings and int to a valid OptimizationFlag.

None defaults to the current level.