def from_string()

in neuron-explainer/neuron_explainer/explanations/simulator.py [0:0]


    def from_string(cls, s: str) -> SimulationType:
        for simulation_type in SimulationType:
            if simulation_type.value == s:
                return simulation_type
        raise ValueError(f"Invalid simulation type: {s}")