MCPcopy Create free account
hub / github.com/NanoComp/meep / str_from_list

Function str_from_list

python/examples/adjoint_optimization/mode_converter.py:62–63  ·  view source on GitHub ↗
(list_: List[float])

Source from the content-addressed store, hash-verified

60
61
62def str_from_list(list_: List[float]) -> str:
63 return "[" + ", ".join(f"{val:.4f}" for val in list_) + "]"
64
65
66def border_masks() -> Tuple[np.ndarray, np.ndarray]:

Callers 2

epigraph_constraintFunction · 0.70
mode_converter.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected