def iaendpoints(OPTION="LOOP"): from iase2hmt import iase2hmt from iabinary import iabinary Iab = None OPTION = upper(OPTION) if OPTION == "LOOP": Iab = iase2hmt(iabinary([[0, 0, 0], [0, 1, 0], [0, 0, 0]]), iabinary([[0, 0, 0], [1, 0, 1], [1, 1, 1]])) elif OPTION == "HOMOTOPIC": Iab = iase2hmt(iabinary([[0, 1, 0], [0, 1, 0], [0, 0, 0]]), iabinary([[0, 0, 0], [1, 0, 1], [1, 1, 1]])) return Iab
def iaendpoints(OPTION="LOOP"): from iase2hmt import iase2hmt from iabinary import iabinary Iab = None OPTION = OPTION.upper() if OPTION == 'LOOP': Iab = iase2hmt(iabinary([[0, 0, 0], [0, 1, 0], [0, 0, 0]]), iabinary([[0, 0, 0], [1, 0, 1], [1, 1, 1]])) elif OPTION == 'HOMOTOPIC': Iab = iase2hmt(iabinary([[0, 1, 0], [0, 1, 0], [0, 0, 0]]), iabinary([[0, 0, 0], [1, 0, 1], [1, 1, 1]])) return Iab
def iahomothin(): from iase2hmt import iase2hmt from iabinary import iabinary Iab = iase2hmt(iabinary([[0, 0, 0], [0, 1, 0], [1, 1, 1]]), iabinary([[1, 1, 1], [0, 0, 0], [0, 0, 0]])) return Iab
def iahomothick(): from iase2hmt import iase2hmt from iabinary import iabinary Iab = iase2hmt(iabinary([[1, 1, 1], [0, 0, 0], [0, 0, 0]]), iabinary([[0, 0, 0], [0, 1, 0], [1, 1, 1]])) return Iab
def iainterot(Iab, theta=45, DIRECTION="CLOCKWISE"): from iase2hmt import iase2hmt from iaserot import iaserot DIRECTION = DIRECTION.upper() A, Bc = Iab if DIRECTION != 'CLOCKWISE': theta = 360 - theta Irot = iase2hmt(iaserot(A, theta), iaserot(Bc, theta)) return Irot
def iainterot(Iab, theta=45, DIRECTION="CLOCKWISE"): from iase2hmt import iase2hmt from iaserot import iaserot DIRECTION = upper(DIRECTION) A,Bc = Iab if DIRECTION != 'CLOCKWISE': theta = 360 - theta Irot = iase2hmt( iaserot(A, theta), iaserot(Bc,theta)) return Irot