Giter Club home page Giter Club logo

Comments (8)

MCilento93 avatar MCilento93 commented on June 2, 2024

How import CompositeTransform() class?

Assume I have a cloud of points and want to apply at low level a CompositeTransform() class, I don't realize how to import this class.

from polliwog.

paulmelnikow avatar paulmelnikow commented on June 2, 2024
from polliwog import CompositeTransform

from polliwog.

MCilento93 avatar MCilento93 commented on June 2, 2024
from polliwog import CompositeTransform

image

I am sorry for the trivial questions but the documentation for increase the userability of the package would boost the trial and error curve :/

from polliwog.

MCilento93 avatar MCilento93 commented on June 2, 2024
from polliwog import CompositeTransform

image

I am sorry for the trivial questions but the documentation for increase the userability of the package would boost the trial and error curve :/

Am I wrong in something?

from polliwog.

MCilento93 avatar MCilento93 commented on June 2, 2024
from polliwog import CompositeTransform

image
I am sorry for the trivial questions but the documentation for increase the userability of the package would boost the trial and error curve :/

Am I wrong in something?

Solved.

x0y0=np.array([0.0, 0.0, 0.0])

from polliwog.transform import CompositeTransform

transform = CompositeTransform()
transform.translate(np.array([0.0, 0.0, 1.0]))
x0y0z0=transform(x0y0)

from polliwog.

paulmelnikow avatar paulmelnikow commented on June 2, 2024

What version of polliwog are you running? Be sure you are on 1.0.0b11.

> python3
Python 3.8.6 (default, Oct 27 2020, 08:57:44)
[Clang 12.0.0 (clang-1200.0.32.21)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from polliwog.transform import CompositeTransform
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: cannot import name 'CompositeTransform' from 'polliwog.transform' (/Users/pnm/code/polliwog/polliwog/transform/__init__.py)
>>> from polliwog import CompositeTransform
>>> import polliwog
>>> polliwog.__version__
'1.0.0b11'

from polliwog.

paulmelnikow avatar paulmelnikow commented on June 2, 2024

Have you seen the documentation, by the way? https://polliwog.readthedocs.io/en/latest/

from polliwog.

MCilento93 avatar MCilento93 commented on June 2, 2024

What version of polliwog are you running? Be sure you are on 1.0.0b11.

> python3
Python 3.8.6 (default, Oct 27 2020, 08:57:44)
[Clang 12.0.0 (clang-1200.0.32.21)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from polliwog.transform import CompositeTransform
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: cannot import name 'CompositeTransform' from 'polliwog.transform' (/Users/pnm/code/polliwog/polliwog/transform/__init__.py)
>>> from polliwog import CompositeTransform
>>> import polliwog
>>> polliwog.__version__
'1.0.0b11'

Correct,
I uploaded to newer version and the importing is like you wrote.

Have you seen the documentation, by the way? https://polliwog.readthedocs.io/en/latest/

I was on /stable and looks slightly different from the one I am reading now.
Thank you,
I will let you know :)

from polliwog.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.