Skip to content

Limit repr length for parameters #3705

@alexander-held

Description

@alexander-held

Version of Awkward Array

2.8.9

Description and code to reproduce

When the parameters information for an array becomes very long, it does not show a shorter version in the repr similar to how other parts of the repr are cut down. As an example, run the following in a notebook:

import awkward as ak
ak.with_parameter([1,2], "systematics", ["some_name"]*500)

In practice I see something like this via a schema, where names of systematic uncertainties are listed and there can be many of those (the above version is shorter than what I have in practice). cc @kratsg

I think "bug" is the wrong label, please consider automatic shortening a feature request instead.

Metadata

Metadata

Assignees

Labels

bugThe problem described is something that must be fixed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions