kicad_scripts icon indicating copy to clipboard operation
kicad_scripts copied to clipboard

Cannot find spiral_inductor.py ?

Open twitchyliquid64 opened this issue 10 years ago • 15 comments

The readme mentions it, perhaps the readme is out of date? How do I generate PCB inductors from the command line?

twitchyliquid64 avatar Dec 25 '15 03:12 twitchyliquid64

The script you're looking for is cmd_line.py under rfid_calculator, I'll update the README. Thanks for letting me know.

ignamv avatar Dec 25 '15 10:12 ignamv

Meanwhile, you can use the online version: http://ignamv2.linkpc.net/spiral/

ignamv avatar Dec 26 '15 20:12 ignamv

Awesome, cheers!

Is that going to be a permanent website?

twitchyliquid64 avatar Dec 27 '15 07:12 twitchyliquid64

Don't count on it, it's running on my home PC which is on its death throes :P

ignamv avatar Dec 27 '15 11:12 ignamv

Its just flask running a HTTP server right? More than happy to put it on one of my VPSes. On 27 Dec 2015 10:10 pm, "ignamv" [email protected] wrote:

Don't count on it, it's running on my home PC which is on its death throes :P

— Reply to this email directly or view it on GitHub https://github.com/ignamv/kicad_scripts/issues/1#issuecomment-167401619.

twitchyliquid64 avatar Dec 27 '15 12:12 twitchyliquid64

That'd be great! IIRC it only needs flask installed, and a fasthenry binary in the directory with calculate.py .

ignamv avatar Dec 28 '15 00:12 ignamv

Where do you get the fasthenry binary? On 28 Dec 2015 11:26 am, "ignamv" [email protected] wrote:

That'd be great! IIRC it only needs flask installed, and a fasthenry binary in the directory with calculate.py .

— Reply to this email directly or view it on GitHub https://github.com/ignamv/kicad_scripts/issues/1#issuecomment-167450293.

twitchyliquid64 avatar Dec 28 '15 00:12 twitchyliquid64

I compiled it from the source at http://www.fastfieldsolvers.com .

ignamv avatar Dec 28 '15 14:12 ignamv

Any chance of compiling one for me for Linux x64? :DD On 29 Dec 2015 1:35 am, "ignamv" [email protected] wrote:

I compiled it from the source at http://www.fastfieldsolvers.com .

— Reply to this email directly or view it on GitHub https://github.com/ignamv/kicad_scripts/issues/1#issuecomment-167581386.

twitchyliquid64 avatar Dec 28 '15 14:12 twitchyliquid64

Sure, if you trust me use this binary https://drive.google.com/file/d/0B_Fw8F853i9ZNEJuNzBaN1lvckE/view?usp=sharing

ignamv avatar Dec 28 '15 17:12 ignamv

root@blog:~/kicad_scripts/rfid_calculator# python3 calculate.py 
Traceback (most recent call last):
  File "calculate.py", line 7, in <module>
    from spiral import spiral
ImportError: cannot import name 'spiral'
root@blog:~/kicad_scripts/rfid_calculator# 

I checked spiral.py, its lacking that function.

Can you commit whatever code you have running on your home PC?

twitchyliquid64 avatar Dec 29 '15 04:12 twitchyliquid64

There, it should hopefully work now.

ignamv avatar Dec 29 '15 11:12 ignamv

hectic: http://ciphersink.net:5000/

twitchyliquid64 avatar Dec 29 '15 12:12 twitchyliquid64

Great! I just committed the javascript, if you want to check it out.

ignamv avatar Dec 29 '15 13:12 ignamv

Hm? There are no recent commits which touched any of the static / template files?

twitchyliquid64 avatar Dec 29 '15 14:12 twitchyliquid64