Skip to content

BUG: Treatment of scalars in input data varies by input format #60

@MImmesberger

Description

@MImmesberger

Is your feature request related to a problem?

When users provide a dataframe and a mapper, scalar values are broadcast to arrays matching the length of p_id. But when users provide the exact same data as an input tree, we do not broadcast; instead, we partially apply the scalars inside the TT function.

Describe the solution you would like to see

Since the partial-application feature does not work well yet, we should keep the current behavior of the dataframe + mapper pipeline; otherwise, casual users will run into errors that are nearly impossible to debug.

So either:

  1. we find a way to fix the partial-application issue for all inputs, or
  2. (preferred in the short run) broadcast scalar inputs for input trees as well, and require users who want to rely on partial-application to supply their inputs via processed_data instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions