Skip to content

Manually Adding Data to Simmate #395

Answered by jacksund
sionab asked this question in Q&A
Discussion options

You must be logged in to vote

Yep! You can use the database table's from_directory methods. For example:

from pathlib import Path

from simmate.database import connect
from simmate.database.base_data_types import Relaxation

my_folder = Path("path/to/my/folder")
relaxation = Relaxation.from_directory(my_folder)

I don't think I have many unittests for this feature yet (and it's been forever since I've used it myself), so if it throws an error, be sure to let me know and open an issue for it!

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jacksund
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants