Skip to content

Error: compas.set_precision #1419

Closed
Closed
@nizartaha

Description

compas.set_precision(0.001)
AttributeError: module 'compas' has no attribute 'set_precision'

https://compas.dev/compas/1.5.0/api/generated/compas.set_precision.html

I wanted to round the Frame values to 6 digits , how is it possible when using compas.json_dump ?

 "data": {
    "point": [
        665.6414239488341,
        -218.07475329238576,
        652.9999999999999
    ],
    "xaxis": [
        0.25779917216805537,
        0.9661985235082206,
        -6.938893903907227e-18
    ],
    "yaxis": [
        0.9661985235082206,
        -0.25779917216805537,
        -1.224646799147353e-16
    ]
},
"dtype": "compas.geometry/Frame",
"guid": "77685a15-8823-4110-8eaf-1aa445e233b8"

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