Coder Social home page Coder Social logo

Error in visualizing trajectory about wot HOT 3 OPEN

hanjun98 avatar hanjun98 commented on August 16, 2024 1
Error in visualizing trajectory

from wot.

Comments (3)

nekonekko avatar nekonekko commented on August 16, 2024

I am getting the same error.

I am using the tutorial data and Notebook 4 as it is distributed.

The environment is as follows:

Apple M2 Chip
macOS Sonoma ver 14.4.1
Python 3.11.6
anndata            0.10.6
appnope            0.1.4
array_api_compat   1.5.1
asttokens          2.4.1
comm               0.2.2
contourpy          1.2.0
cycler             0.12.1
Cython             3.0.9
debugpy            1.8.1
decorator          5.1.1
executing          2.0.1
fonttools          4.50.0
h5py               3.10.0
ipykernel          6.29.4
ipython            8.22.2
ipywidgets         8.1.2
jedi               0.19.1
joblib             1.3.2
jupyter_client     8.6.1
jupyter_core       5.7.2
jupyterlab_widgets 3.0.10
kiwisolver         1.4.5
matplotlib         3.8.3
matplotlib-inline  0.1.6
natsort            8.4.0
nest-asyncio       1.6.0
numpy              1.26.4
packaging          24.0
pandas             2.2.1
parso              0.8.3
patsy              0.5.6
pexpect            4.9.0
pillow             10.2.0
pip                24.0
platformdirs       4.2.0
POT                0.9.3
prompt-toolkit     3.0.43
psutil             5.9.8
ptyprocess         0.7.0
pure-eval          0.2.2
Pygments           2.17.2
pyparsing          3.1.2
python-dateutil    2.9.0.post0
pytz               2024.1
pyzmq              25.1.2
scikit-learn       1.4.1.post1
scipy              1.12.0
setuptools         65.5.0
six                1.16.0
stack-data         0.6.3
statsmodels        0.14.1
threadpoolctl      3.4.0
tornado            6.4
traitlets          5.14.2
tzdata             2024.1
wcwidth            0.2.13
widgetsnbextension 4.0.10
wot                1.0.8.post2

from wot.

nekonekko avatar nekonekko commented on August 16, 2024

I made the following changes based on the error message and it worked, but the output does not seem to be correct.
The color of the plot is almost uniform.
There may be a problem with the color bar settings.

binned_df['values'] = trajectory_ds[:, name].X

binned_df['values'] = trajectory_ds[:, name].X.T[0]

image

from wot.

nekonekko avatar nekonekko commented on August 16, 2024

It now works correctly by rewriting it as follows!

binned_df['values'] = trajectory_ds[:, name].X

binned_df['values'] = trajectory_ds[:, name].X.T[0].tolist()

Since trajectory_ds[:, name].X is a two-dimensional array of the form (165892, 1), it should first be converted into a one-dimensional array using .T[0].

However, because trajectory_ds[:, name].X.T[0] is an ArrayView class, it also needs to be converted into a form that can be assigned to a DataFrame using .tolist().

from wot.

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.