Skip to content

[BUG] Wrong return types and incomplete color band range #4

@osinjoku

Description

@osinjoku

Describe the bug
Two bugs.

  1. The return type of from_list functions is None instead of int for the size (DoubleArray, IntegerArray and StringArray).
  2. The available color band range is incomplete, it should be from 1 to 256 not 2 to 64 + [256].

To Reproduce
Steps to reproduce the behavior:

  1. Call IntegerArray.from_list([1, 2, 3]) and the return will be None instead of 3.
  2. Set Plot.color_bands = 1 and an error will be raised erroneously.

Expected behavior
Calling from_list on a data object should return the size in the form of an int.
Setting the color_bands property of a plot should work for values 1 to 256.

Error Message
N/A.

Environment:

  • OS: [e.g. Windows 11]
  • Python Version: [e.g. 3.13.7]
  • Package Version: [e.g. 26.0.0]
  • Moldflow Synergy Version: [e.g. 2026.0.1]

Additional context
N/A.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions