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

Move downloads config and add extra options #1702

Merged
merged 1 commit into from
Jan 23, 2024

Conversation

blythed
Copy link
Collaborator

@blythed blythed commented Jan 23, 2024

Description

Related Issues

Checklist

  • Is this code covered by new or existing unit tests or integration tests?
  • Did you run make unit-testing and make integration-testing successfully?
  • Do new classes, functions, methods and parameters all have docstrings?
  • Were existing docstrings updated, if necessary?
  • Was external documentation updated, if necessary?

Additional Notes or Comments

@blythed blythed force-pushed the features/sklearn-demo branch from 1a3ff14 to d92f1c4 Compare January 23, 2024 19:51
@@ -69,7 +69,7 @@ def pickle_decode(b: bytes, info: t.Optional[t.Dict] = None) -> t.Any:


def dill_encode(object: t.Any, info: t.Optional[t.Dict] = None) -> bytes:
return dill.dumps(object)
return dill.dumps(object, recurse=True)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Important so that saving from jupyter works.

@@ -177,7 +177,10 @@ def build_datalayer(cfg=None, databackend=None, **kwargs) -> Datalayer:

# Update configuration with keyword arguments.
for k, v in kwargs.items():
cfg.force_set(k, v)
if '__' in k:
getattr(cfg, k.split('__')[0]).force_set(k.split('__')[1], v)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Allows developers to set deeper parameters.

@dc.dataclass
class Downloads(BaseConfigJSONable):
folder: t.Optional[str] = None
n_workers: int = 0
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Set these parameters here not in some collection somewhere.

@codecov-commenter
Copy link

codecov-commenter commented Jan 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (34830a7) 80.33% compared to head (d92f1c4) 78.89%.
Report is 1407 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1702      +/-   ##
==========================================
- Coverage   80.33%   78.89%   -1.45%     
==========================================
  Files          95      122      +27     
  Lines        6602     8736    +2134     
==========================================
+ Hits         5304     6892    +1588     
- Misses       1298     1844     +546     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@blythed blythed merged commit 6cb801f into superduper-io:main Jan 23, 2024
2 checks passed
@blythed blythed deleted the features/sklearn-demo branch June 1, 2024 10:06
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.

2 participants