-
Notifications
You must be signed in to change notification settings - Fork 192
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Archive export refactor (2) #4534
Changes from 13 commits
681803b
187725f
6d3311a
f9e265b
e477280
f9feb27
fca7620
95b55a0
b3227ac
4f1cef7
6097589
b3fd6bb
cd7a0ef
b3c0ea2
1294692
d4e9f3e
68f4944
3d22a7b
73c99aa
5b4c306
0f1cb3c
78eb161
ae32cab
7681f79
4ca4bcb
3d76c15
88d75bb
f509685
d7021c8
2b96a3e
98f0b9d
37d2a4f
a2720fe
86a81ab
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ | |
from pathlib import Path | ||
import tarfile | ||
from types import TracebackType | ||
from typing import Any, Callable, Dict, Iterable, List, Optional, Set, Tuple, Type, Union | ||
from typing import Any, Callable, Dict, Iterable, List, Optional, Tuple, Type, Union | ||
import zipfile | ||
|
||
from aiida.common import json # handles byte dumps | ||
|
@@ -47,7 +47,7 @@ class ArchiveMetadata: | |
# optional data | ||
graph_traversal_rules: Optional[Dict[str, bool]] = dataclasses.field(default=None) | ||
# Entity type -> UUID list | ||
entities_starting_set: Optional[Dict[str, Set[str]]] = dataclasses.field(default=None) | ||
entities_starting_set: Optional[Dict[str, List[str]]] = dataclasses.field(default=None) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I guess there is a good reason for this change; just mentioning that There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yeh I went back and forth on this, because it has to be converted to a list before storing as a json and so it was a little easier to convert before passing to the writer. |
||
include_comments: Optional[bool] = dataclasses.field(default=None) | ||
include_logs: Optional[bool] = dataclasses.field(default=None) | ||
# list of migration event notifications | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comment #4534 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This allows for performance (cpu/memory) testing from the CLI, as we have done for other PRs (see below). I would just comment it out before merging, because it is definitely something very useful and something that will be beneficial if not now then for the new format.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
commented out