Skip to content

Testcase with input / parameter #17

Description

@andsor
import numpy as np
from simkernel import Experiment

# define simulation
def sim(x):
    return x

# define experiment
xp = Experiment(sim, inputgen=range)

# execute experiment
res = xp(input=3)

np.testing.assert_array_equal(res, [0, 1, 2])

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions