lincc-frameworks / lincc-frameworks/hyrax

Allow more flexible returns from `forward`

Open
#858 0 comments 0 reactions 1 assignee View on GitHub

@maxwest-uw is already working on this.

Since Apr 23, 2026.

enhancement
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.