Skip to content

Commit

Permalink
clean up materials doc
Browse files Browse the repository at this point in the history
  • Loading branch information
shyamd committed Sep 28, 2020
1 parent f3367d2 commit 215437e
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions emmet-builders/emmet/builders/vasp/materials.py
Expand Up @@ -267,13 +267,19 @@ def make_mat(self, task_group: List[Dict]) -> Dict:
"""

# Metadata
last_updated = max(t[self.tasks.last_updated_field] for t in task_group)
created_at = min(t[self.tasks.last_updated_field] for t in task_group)
task_ids = list({t[self.tasks.key] for t in task_group})
sandboxes = list({sbxn for t in task_group for sbxn in t.get("sbxn", [])})
last_updated = max(task[self.tasks.last_updated_field] for task in task_group)
created_at = min(task[self.tasks.last_updated_field] for task in task_group)
task_ids = list({task[self.tasks.key] for task in task_group})
sandboxes = list(
{sbxn for task in task_group for sbxn in task.get("sbxn", ["core"])}
)

deprecated_tasks = list(
{t[self.tasks.key] for t in task_group if not t["is_valid"]}
{
task[self.tasks.key]
for task in task_group
if not task.get("is_valid", True)
}
)
run_types = {
t[self.tasks.key]: run_type(t["output"]["parameters"]) for t in task_group
Expand Down

0 comments on commit 215437e

Please sign in to comment.