xopt-org / Xopt

Flexible high-level optimization in Python
Apache License 2.0
70 stars 23 forks source link

AsynchronousXopt.to_json() broken #235

Open ChristopherMayes opened 4 months ago

ChristopherMayes commented 4 months ago
#from xopt import Xopt # Works
from xopt import AsynchronousXopt as Xopt # Error

YAML = """
generator:
  name: random

evaluator:
  function: xopt.resources.test_functions.tnk.evaluate_TNK

vocs:
  variables:
    x1: [0, 3.14159]
    x2: [0, 3.14159]
  objectives: {y1: MINIMIZE}

"""
X = Xopt(YAML)
X.step()
X.step()
X.to_json()

...

ValueError: DataFrame index must be unique for orient='columns'.