Skip to content
Discussion options

You must be logged in to vote
  1. You don't need to pull the structure column! You can convert the search results directly to toolkit (pymatgen-like) objects using the to_toolkit method. But since you are using these for a new calculation, you can actually just give the database object to your workflow.
  2. You have the filtering down. To see the columns that you can filter with or do some more complex queries, you can read through the docs here
  3. If you only wanted 1 structure returned in your search, you can call first() on your search results. You might also want to do something like "give me the most recent one" in which case you would do order_by("-created_at").first(). Your case is slightly different where you want to re…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@becca9835
Comment options

@jacksund
Comment options

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