Title: context_clean.py new_float error · Issue #30 · tmolteno/python-necpp · GitHub
Open Graph Title: context_clean.py new_float error · Issue #30 · tmolteno/python-necpp
X Title: context_clean.py new_float error · Issue #30 · tmolteno/python-necpp
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 re...
Open Graph 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 com...
X 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 com...
Opengraph URL: https://github.com/tmolteno/python-necpp/issues/30
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"context_clean.py new_float error","articleBody":"I compiled and installed PyNEC in a conda environment on my Mac with python 3.12\r\nNote: 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. \r\n\r\ncan be recreated with \r\n`conda create -n env_name python=3.12 pip anaconda swig make automate autoconf libtool cmake` \r\nand I will attach the pip freeze file.\r\n\r\nwhen running monopole_realistic_ground.py I get the following error:\r\n\r\n```\r\nException has occurred: TypeError\r\nin method 'c_geometry_wire', argument 4 of type 'nec_float'\r\n File \"/Users/**redacted**/Downloads/pynec_examples/context_clean.py\", line 184, in wire\r\n 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)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/Users/**redacted**/Downloads/pynec_examples/monopole_realistic_ground_plane.py\", line 45, in geometry_monopole_ground\r\n\r\n geo.wire(tag_id=wire_tag, nr_segments=nr_segments, src=bottom, dst=top, radius=wire_radius)\r\n File \"/Users/**redacted**/Downloads/pynec_examples/monopole_realistic_ground_plane.py\", line 142, in \u003cmodule\u003e\r\n z = simulate_and_get_impedance(geometry_monopole_ground(design_freq_mhz, initial_length, ground_wire_length, nr_segments))\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\nTypeError: in method 'c_geometry_wire', argument 4 of type 'nec_float'\r\n```\r\n\r\n\r\n[env.txt](https://github.com/user-attachments/files/16911648/env.txt)\r\n[conda_env_export.txt](https://github.com/user-attachments/files/16911693/conda_env_export.txt)\r\n","author":{"url":"https://github.com/tfblum","@type":"Person","name":"tfblum"},"datePublished":"2024-09-06T18:16:22.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/30/python-necpp/issues/30"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:0c02f28b-dd70-29cb-0cd7-8940e3699ea3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B7A2:3CDA94:E0392E:13B23AA:696FBEFF |
| html-safe-nonce | 0396028ddddc47617e7cbfa85970adb57aba7883b6e8f10b99c857ea051fe574 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCN0EyOjNDREE5NDpFMDM5MkU6MTNCMjNBQTo2OTZGQkVGRiIsInZpc2l0b3JfaWQiOiI1NDQwMjIxNzY2MDYxMzc1MjMxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 89020e5db9e4ba16f1d672fbf8182426c190ca80cc0d888ddf36a92376cdc936 |
| hovercard-subject-tag | issue:2510969227 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/tmolteno/python-necpp/30/issue_layout |
| twitter:image | https://opengraph.githubassets.com/35725a2a96c2e39b95641403250b02cf2599def98aea3261710e7c9942461719/tmolteno/python-necpp/issues/30 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/35725a2a96c2e39b95641403250b02cf2599def98aea3261710e7c9942461719/tmolteno/python-necpp/issues/30 |
| og:image:alt | 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 com... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tfblum |
| hostname | github.com |
| expected-hostname | github.com |
| None | 40ce4030a7db32193be29054756ed7f7eceec3a82973f060300035bdff8cf777 |
| turbo-cache-control | no-preview |
| go-import | github.com/tmolteno/python-necpp git https://github.com/tmolteno/python-necpp.git |
| octolytics-dimension-user_id | 85630 |
| octolytics-dimension-user_login | tmolteno |
| octolytics-dimension-repository_id | 33094484 |
| octolytics-dimension-repository_nwo | tmolteno/python-necpp |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 33094484 |
| octolytics-dimension-repository_network_root_nwo | tmolteno/python-necpp |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 1cdcabe0d7ddc4be91a713d57280849e4c89f5cd |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width