-
Notifications
You must be signed in to change notification settings - Fork 28
Open
Description
I compiled and installed PyNEC in a conda environment on my Mac with python 3.12
Note: I needed to change glibtoolize to libtoolize in line 6 of necpp_src/Makefile.git so that it would properly compile in the conda environment.
can be recreated with
conda create -n env_name python=3.12 pip anaconda swig make automate autoconf libtool cmake
and I will attach the pip freeze file.
when running monopole_realistic_ground.py I get the following error:
Exception has occurred: TypeError
in method 'c_geometry_wire', argument 4 of type 'nec_float'
File "/Users/**redacted**/Downloads/pynec_examples/context_clean.py", line 184, in wire
return self.geometry.wire(tag_id, nr_segments, src[0], src[1], src[2], dst[0], dst[1], dst[2], radius, length_ratio, radius_ratio)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/**redacted**/Downloads/pynec_examples/monopole_realistic_ground_plane.py", line 45, in geometry_monopole_ground
geo.wire(tag_id=wire_tag, nr_segments=nr_segments, src=bottom, dst=top, radius=wire_radius)
File "/Users/**redacted**/Downloads/pynec_examples/monopole_realistic_ground_plane.py", line 142, in <module>
z = simulate_and_get_impedance(geometry_monopole_ground(design_freq_mhz, initial_length, ground_wire_length, nr_segments))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: in method 'c_geometry_wire', argument 4 of type 'nec_float'
Metadata
Metadata
Assignees
Labels
No labels