def parse_dsl(filename: str): return jl_DSL.parse_dsl(filename) buffer=[] with open(filename) as f: for line in f: buffer.append(line) return parse_dsl(buffer)
def __init__(self, name, target, bond_index, bond_range): self._jl = jl_DSL.ViewCommand(name, target, bond_index, bond_range)
def __init__(self, num_outputs): self._jl = jl_DSL.OutputsCommand(num_outputs)
def __init__(self, output_name, output_idxs, left_name, left_idxs, right_name, right_idxs): self._jl = jl_DSL.NconCommand(output_name, output_idxs, left_name, left_idxs, right_name, right_idxs)
def __init__(self, name, dims): self._jl = jl_DSL.PermuteCommand(name, label)
def __init__(self, name, dims): self._jl = jl_DSL.ReshapeCommand(name, dims)
def __init__(self, name): self._jl = jl_DSL.DeleteCommand(name)
def __init__(self, name, label): self._jl = jl_DSL.SaveCommand(name, label)