tightbinder.topology.calculate_z2_invariant# calculate_z2_invariant(wcc_flow)[source]# Routine to compute the z2 invariant from the number of jumps the max gap midpoint does across different WCC bands. Parameters: wcc_flow (ndarray) – Array with the WCC for all paths. Return type: int Returns: Value of Z2 invariant.