buildingSMART / buildingSMART/validate

Validation error IfcSurfaceWeightsPositive(self) triggered by error "unsupported operand type for - 'list' and 'int'"

Open
#266 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
67
Forks
20
Avg merge
1d 14h
Merged PRs (30d)
13

Description

Error file: Regression\Consumer\IFC\Property\PropertiesWithUnits\IfcSurfaceOfLinearExtrusion_optional_position_out.validation.json.base
The error massage: "IfcSurfaceWeightsPositive(self)\n\nViolated by:\n unsupported operand type(s) for -: 'list' and 'int'
On instance: **#97=IfcRationalBSplineSurfaceWithKnots**(2,1,((#87,#88),(#89,#90),(#91,#92),(#93,#94),(#95,#96)),.UNSPECIFIED.,.F.,.F.,.U.,(3,2,3),(2,2),(-3.14159265358979,-1.5707963267949,0.),(-328.083989501312,328.083989501312),.UNSPECIFIED.,((1.,1.),(0.707106781186547,0.707106781186547),(1.,1.),(0.707106781186548,0.707106781186548),(1.,1.)))\n"
The weight data 2D array associated with control points is = ((1.,1.),(0.70710678118654735,0.70710678118654735),(1.,1.),(0.70710678118654768,0.70710678118654768),(1.,1.)) i.e. all the values are positive.
The error occurs in validator when checking the IfcSurfaceWeightsPositive rule. The message:
"unsupported operand type(s) for -: 'list' and 'int'"
This is a Python TypeError: the code is trying to subtract an integer from a list, which is invalid.

Image

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.