Skip to content

PhiFlow v3.3.0 needs phiml >= 1.12.0 #192

@Dominic-DallOsto

Description

@Dominic-DallOsto

This is on Ubuntu 24.04

With PhiFlow v3.3.0 and phiml v1.10.0:

>>> from phi.torch import flow

      1 from typing import Sequence, Union, Optional, Tuple
      3 from phiml import math
----> 4 from phiml.math import Tensor, channel, Shape, normalize, vec, sqrt, maximum, clip, vec_squared, norm, where, stack, dual, argmin, safe_div, arange, wrap, to_float, rename_dims
      5 from phiml.math._shape import parse_dim_order, DimFilter, shape
      8 # No dependence on Geometry

ImportError: cannot import name 'norm' from 'phiml.math' (.../python3.12/site-packages/phiml/math/__init__.py)

With PhiFlow v3.3.0 and phiml v1.11.0:

>>> from phi.torch import flow

      3 import numpy as np
      5 from phi import geom, math
----> 6 from phiml.math._shape import from_dict
      7 from ._field import Field
      8 from ._grid import unstack_staggered_tensor, CenteredGrid, StaggeredGrid

ImportError: cannot import name 'from_dict' from 'phiml.math._shape' (.../python3.12/site-packages/phiml/math/_shape.py)

With PhiFlow v3.3.0 and phiml v1.12.0, everything works.

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