UCL-CCS / EasyVVUQ

Python 3 framework to facilitate verification, validation and uncertainty quantification (VVUQ) for a wide variety of simulations.
https://easyvvuq.readthedocs.io/
GNU Lesser General Public License v3.0
87 stars 27 forks source link

Possible issue when running test script (basic_tutorial_qcgpj.py) in tutorials #391

Open mzrghorbani opened 1 year ago

mzrghorbani commented 1 year ago

Running basic_tutorial_qcgpj.py terminates abruptly with the following message:

 Traceback (most recent call last):
  File "basic_tutorial_qcgpj.py", line 44, in <module>
    campaign.campaign_db.dump()
  File "/home/mghorbani/workspace/FabSim/venv/lib/python3.8/site-packages/easyvvuq/db/sql.py", line 954, in dump
    result[table.name] = [dict(row) for row in self.engine.execute(table.select())]
AttributeError: 'Engine' object has no attribute 'execute'

Removing the line "campaign.campaign_db.dump()" will allow the execution to be completed successfully, however, it might have ramifications for handling db.