GithubHelp home page GithubHelp logo

Comments (7)

DanW97 avatar DanW97 commented on June 14, 2024

What branch are you using?

from up4.

Aran55336 avatar Aran55336 commented on June 14, 2024

Just the default upppp branch I believe, I followed the instructions on there for download.

from up4.

DanW97 avatar DanW97 commented on June 14, 2024

Ah, that'll be the issue.

The plotting interface is in the middle of a major rework into a saner entity. I'm working on it currently, I've just had a lot of stuff on my plate lately, so I haven't had time to finish off the rework.

For now, please use the new-plotting-interface branch. The way to use the newer iteration of the plotting interface can be found in tests/test-interface.py is as follows:

plotter = up4.Plotter2D(vec_field)

fig = plotter.unit_vector_plot(axis, selection="depth_average")
fig.update_layout(width=600, height=600)
fig.update_xaxes(title="x position (mm)")
fig.update_yaxes(title="y position (mm)")

The key difference is that the two plotters focus on whether the plot is 2D or 3D, introducing Plotter2D and Plotter3D. For Plotter2D, you have the following arguments you can pass:

  • axis (0, 1, 2)
  • selection ("depth-average" or "plane")
  • index (only required for "plane" selection)
  • scaling_mode ("max", "min", "minmax", "half_node", "full_node")
  • scaling_args (has to be a list)

I'll leave this issue open until the rework is merged into the default branch.

from up4.

Aran55336 avatar Aran55336 commented on June 14, 2024

I had to reinstall as I think the new plotting interface was updated recently (tried running after switching branches but it said the Plotter2D command didn't exist), but now it doesn't seem to reinstall. I get this error when building wheels for up4 " error: cargo rustc --lib --message-format=json-render-diagnostics --manifest-path Cargo.toml --release -v --features 'python pyo3/extension-module' --crate-type cdylib -- failed with code 101". I have tried reinstalling rust to see if it was out of date but no difference.

from up4.

DanW97 avatar DanW97 commented on June 14, 2024

Interesting. What version of Rust are you using?

Can you try running cargo clean and pip uninstall up4 to ensure that you are starting fresh. And then when installing from the new-plotting-interface branch run:

RUST_BACKTRACE=1 python3 -m pip install . -vvv > install.txt 2>&1

and attach the created file.

from up4.

Aran55336 avatar Aran55336 commented on June 14, 2024

Of course, attached is the file!
install.txt

from up4.

DanW97 avatar DanW97 commented on June 14, 2024

Hi @Aran55336, once #34 is merged, hopefully your issues are all resolved!

from up4.

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.