Skip to content

Cannot import Tri module due to deprecated function call #80

@jewellwk

Description

@jewellwk

@niftools/pyffi-reviewers

Issue Overview

I work for a lab that needs to be able to automate how they process .tri files. This is the only python library that can handle specific formats. I cannot import the Tri sub module because there is a reference to time.clock(). The clock function has been deprecated.

Version Information

Pyffi Version Info

2.2.3
Run the following command if it is installed.
python -c "import pyffi; print(pyffi.version)"

Platform information

macOS Ventura

Context

I cannot import the Tri sub module because there is a reference to time.clock(). The clock function has been deprecated.

Steps to Reproduce

Attempt to import pyffi.formats.tri

Expected Result

AttributeError: module 'time' has no attribute 'clock'

Actual Result

AttributeError: module 'time' has no attribute 'clock'

Possible Fix

Update reference to newer function

Screenshot

N/A

Logs and Files

N/A

Console Output

N/A

Similar Known Issues

N/A

Additional Information

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions