Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Evolver Node Error #5076

Open
frusaka opened this issue Jan 13, 2024 · 2 comments
Open

Evolver Node Error #5076

frusaka opened this issue Jan 13, 2024 · 2 comments

Comments

@frusaka
Copy link

frusaka commented Jan 13, 2024

Problem statement

I was trying to use the Evolver node but it seems to run into errors.

Steps to reproduce

I used the example from the documentation to make the shortest path that cycles through all points.
Screenshot (27)

Actual result

When I tried to run it, I got this:
Python: Traceback (most recent call last): File "C:\Users\Me\Documents\Blender scripts\addons\sverchok-master\utils\sv_operator_mixins.py", line 67, in execute response = self.sv_execute(context, node) File "C:\Users\Me\Documents\Blender scripts\addons\sverchok-master\nodes\logic\evolver.py", line 558, in sv_execute population.evolve() File "C:\Users\Me\Documents\Blender scripts\addons\sverchok-master\nodes\logic\evolver.py", line 526, in evolve self.population_g = self.get_new_population(actual_population_fitenss, mode) File "C:\Users\Me\Documents\Blender scripts\addons\sverchok-master\nodes\logic\evolver.py", line 457, in get_new_population weights = 1/np.power(np.array(fitness), self.node.fitness_booster) TypeError: unsupported operand type(s) for ** or pow(): 'str' and 'int'

Sverchok version 1.3.0 alpha

@satabol
Copy link
Collaborator

satabol commented Jan 27, 2024

@frusaka Can you share file with your scheme? I can't reproduce problem.

@frusaka
Copy link
Author

frusaka commented Jan 27, 2024

Just As Is, hit run.
genes_sv - 1.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants