-
Notifications
You must be signed in to change notification settings - Fork 1
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
SMaHT ingestion work. Moved structured_data.py from smaht-portal to here. (Tests still in smaht-portal though for now). #294
Conversation
…handle sub-class refs.
…e_map to handle sub-class refs.
…e_map to handle sub-class refs.
…e_map to handle sub-class refs.
…e_map to handle sub-class refs.
…e_map to handle sub-class refs.
Pull Request Test Coverage Report for Build 7173036488
💛 - Coveralls |
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.
Most has seen previous review, moving into utils I think is smart
dcicutils/misc_utils.py
Outdated
@@ -1501,6 +1501,14 @@ def right_trim(list_or_tuple: Union[List[Any], Tuple[Any]], | |||
return list_or_tuple[:i + 1] | |||
|
|||
|
|||
def create_object(**kwargs) -> dict: |
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.
object
is a synonym in some sense but I'd maybe prefer create_dict
?
def load(file: str, portal: Optional[Union[VirtualApp, TestApp, Portal]] = None, | ||
schemas: Optional[List[dict]] = None, | ||
order: Optional[List[str]] = None, prune: bool = True) -> StructuredDataSet: | ||
return StructuredDataSet(file=file, portal=portal, schemas=schemas, order=order, prune=prune) |
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.
Some docstring may be useful especially in situations where you have a lot of complex/mixed types as input
No description provided.