MitjaNemec / Kicad_action_plugins

Kicad action plugins
413 stars 62 forks source link

Replicate parts but not tracks #18

Closed hildogjr closed 5 years ago

hildogjr commented 5 years ago

Last try of replicate plugins, I got the replicated placement but not the tracks and vias. The error:

Traceback (most recent call last): File "/home/h/.kicad_plugins/replicate_layout/action_replicate_layout.py", line 302, in Run polar) File "/home/h/.kicad_plugins/replicate_layout/replicatelayout.py", line 943, in replicate_layout self.replicate_tracks(x_offset, y_offset, polar) File "/home/h/.kicad_plugins/replicate_layout/replicatelayout.py", line 764, in replicate_tracks net_pairs, net_dict = self.get_net_pairs(sheet) File "/home/h/.kicad_plugins/replicate_layout/replicatelayout.py", line 478, in get_net_pairs index = match_len.index(max(match_len)) ValueError: max() arg is an empty sequence

MitjaNemec commented 5 years ago

If this is repeatable, I'd appreciate the kicad_pcb file if you can share it (if need be we can set up private chanel in order to not share the design with the whole world)

Otherwise it will take some time to solve it as I need to put in some logging (this is already on the todo list) and then I'll have a bit deeper understanding what is happening, as right now it is hard for me to even speculate what is the cause.

MitjaNemec commented 5 years ago

Anyway, thanks for repporting.

hildogjr commented 5 years ago

I did some debug and appear to be related with the machine (using some Nightly version). I will update the Nightly on it and check again.

hildogjr commented 5 years ago

This problem is not present anymore on recent code releases.