


{"id":403849,"date":"2025-01-07T08:36:35","date_gmt":"2025-01-07T08:36:35","guid":{"rendered":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/material-import-broken-in-2024-r23\/"},"modified":"2025-01-07T08:36:35","modified_gmt":"2025-01-07T08:36:35","slug":"material-import-broken-in-2024-r23","status":"publish","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/material-import-broken-in-2024-r23\/","title":{"rendered":"Material import broken in 2024 R2.3"},"content":{"rendered":"<p>&lt;p&gt;I recently upgraded my Lumerical installation from 2023 R1.3 to 2024 R2.3. After the upgrade, I noticed that importing materials using sampled (n, k) data no longer works as expected. The issue seems to be in the underlying readdata function, which does not work as expected. Taking the example file on <a href=\"https:\/\/optics.ansys.com\/hc\/en-us\/articles\/360034411234-readdata-Script-command\" target=\"_blank\" rel=\"noopener\">this page<\/a>, and running ?readdata on it produces the following output:&lt;br&gt;&lt;br&gt;result:&nbsp;&lt;br&gt;0 &nbsp;3 &nbsp;&lt;br&gt;1 &nbsp;2 &nbsp;&lt;br&gt;2 &nbsp;4 &nbsp;&lt;br&gt;3 &nbsp;3 &nbsp;&lt;\/p&gt;&lt;p&gt;This is clearly wrong; it seems that readdata only reads the integer part of each number and ignores everything after the decimal point.&nbsp;&lt;\/p&gt;&lt;p&gt;I am running Lumerical on Ubuntu, if that is relevant.&lt;\/p&gt;&lt;p&gt;Needless to say, but this is a massive bug, which prevents me from running any (relevant) simulations due to not being able to use imported materials. I would have reported it directly to Ansys, if I had the&nbsp;means to do that. &lt;\/p&gt;<\/p>\n","protected":false},"template":"","class_list":["post-403849","topic","type-topic","status-publish","hentry"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_forum_id":["27833"],"_bbp_topic_id":["403849"],"_bbp_author_ip":["130.233.142.82"],"_bbp_last_reply_id":["425590"],"_bbp_last_active_id":["425590"],"_bbp_last_active_time":["2025-03-13 16:25:25"],"_bbp_reply_count":["3"],"_bbp_reply_count_hidden":["1"],"_bbp_voice_count":["2"],"_btv_view_count":["99"],"_bbp_topic_status":["unanswered"],"_bbp_notification_enabled":["473055","11551"],"_bbp_subscription":["473055","506801","11551"],"_bbp_engagement":["11551","473055"]},"test":"abf1b97a7bf8e85099c5ff7d0e0d474fa85c13bd"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/403849","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics"}],"about":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/403849\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=403849"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}