Skip to content
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

Merged
merged 53 commits into from
Dec 11, 2023

Conversation

dmichaels-harvard
Copy link
Contributor

No description provided.

@coveralls
Copy link

coveralls commented Dec 5, 2023

Pull Request Test Coverage Report for Build 7173036488

  • 1 of 661 (0.15%) changed or added relevant lines in 4 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-3.9%) to 73.262%

Changes Missing Coverage Covered Lines Changed/Added Lines %
dcicutils/misc_utils.py 1 6 16.67%
dcicutils/data_readers.py 0 18 0.0%
dcicutils/portal_utils.py 0 202 0.0%
dcicutils/structured_data.py 0 435 0.0%
Totals Coverage Status
Change from base Build 7045807949: -3.9%
Covered Lines: 9472
Relevant Lines: 12929

💛 - Coveralls

Copy link
Member

@willronchetti willronchetti left a 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

@@ -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:
Copy link
Member

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?

Comment on lines +62 to +65
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)
Copy link
Member

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

@dmichaels-harvard dmichaels-harvard merged commit 26ec9c0 into master Dec 11, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants