lincc-frameworks / lincc-frameworks/hyrax
Allow more flexible returns from `forward`
@maxwest-uw is already working on this.
Since Apr 23, 2026.
- Dominant language
- Python
- Stars
- 41
- Forks
- 7
- Avg merge
- 5d 1h
- Merged PRs (30d)
- 8
Description
**Feature request**
Currently users can only return a Tensor of results from `forward` which will be saved as output.
It seems reasonable that we should support more flexible outputs than this. Specifically, it would seem reasoanble to allow a user to return a `dictionary[str:value]` from `forward`. The `ResultDatasetWriter` would easily be able to create outputs with columns that match the key names, and likewise, the ResultDataset(Reader) class would be able to dynamically create the `getter` methods based on the schema from the files.
The backward compatable approach would simply write out the Tensor data to a `data` column. The dynamic creation of `getter` methods would work with that just fine.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.