Skip to content

Add __all__ Export List to __init__.py #157

Open
spmridula wants to merge 2 commits intosensorium-competition:mainfrom
spmridula:add-public-api-exports
Open

Add __all__ Export List to __init__.py #157
spmridula wants to merge 2 commits intosensorium-competition:mainfrom
spmridula:add-public-api-exports

Conversation

@spmridula
Copy link
Copy Markdown

Pull Request: Add all Export List to init.py

Summary

This PR improves the public API of Experanto by populating the previously empty __init__.py file. With these changes, users can now import core classes directly from the top-level package (e.g., from experanto import Experiment).

Changes

  • Added module docstring describing Experanto’s purpose and main exports
  • Imported key classes:
    • Experiment (load and query multi-modal experiment data)
    • ChunkDataset (PyTorch Dataset for training)
    • Interpolator (base class for modality interpolators)
  • Defined __all__ to explicitly declare the public API
  • Added __version__ = "0.1.0"

Motivation

The empty __init__.py prevented users from accessing core classes via top-level imports. Defining __all__ makes the package easier to use, improves discoverability, and clarifies the intended public API.

Impact

  • Users can now write cleaner imports:
    from experanto import Experiment, ChunkDataset, Interpolator

- Export Experiment, ChunkDataset, Interpolator
- Add module docstring
- Add __all__ for explicit public API
- Enables 'from experanto import Experiment' usage
- Improves IDE autocomplete and discoverability
@gitnotebooks
Copy link
Copy Markdown

gitnotebooks bot commented Mar 29, 2026

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 30, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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