nortikin / sverchok

Sverchok
http://nortikin.github.io/sverchok/
GNU General Public License v3.0
2.24k stars 233 forks source link

Graft Topology changes values #4345

Open Erindale opened 3 years ago

Erindale commented 3 years ago

Problem statement

I might simply be misunderstanding the functionality of Graft Topology but it seems to replace single value Lv1 lists with a 0 instead of the original value.

Steps to reproduce

  1. Add a Constant List node
  2. Output any level and value and length.
  3. Set socket menu to Graft Topo (G2) and the output will only read 0s.

Expected result

I thought a single value would simply be grafted like normal as it's a Lv1 list of number(s).

Actual result

[1, 1, 1, 1] becomes [[0, 0, 0, 0]]

Sverchok version

1.0.0 (c1b6d7a)

image

Durman commented 3 years ago

It defenetly does not work as it was intended according to the documentation - http://nortikin.github.io/sverchok/docs/user_interface/socket_menus.html#graft-topology Expected result should be [[[[0,1]], [[2, 3]], [[3, 4]]]] in the case below. 2021-09-11_16-49-17

satabol commented 1 year ago

Hi @portnov. What is the function "to_zero_base" in code? : https://github.com/nortikin/sverchok/blame/4c4bbcaaf5ba11635e17dad108c38fab98152e21/core/sockets.py#L992-L994 image

Can it be a problem?