Skip to content

Calibration shape error with floats with 256+ profiles #109

@Hanyuan-Liu

Description

@Hanyuan-Liu

while using pyowc.calibration.calc_piecewisefit with floats with more than 256 profiles, there would be a error as below:

File /lib/python3.8/site-packages/pyowc/calibration.py:653
in calc_piecewisefit(float_dir, float_name, system_config)
line 653 pcond_factor[0][calindex] = condslope

ValueError: shape mismatch: value array of shape (256,) could not be broadcast to indexing result of shape (440,)

This error happens every time OWC tries to calculate fit for a float with a large number of profiles.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions