It looks like you're new here. If you want to get involved, click one of these buttons!
Hello!
I'm trying to figure out how to pull design rules parameters(integers) from an excel doc saved as a csv, and use those paramters in my DRC code to test different design rules on various packages. So far I've been using python to read in and store the values from the excel file, but I am confused on how to pull those store values from python to the DRC code for use. Any suggestion?
Thanks!
Comments
To elaborate is there a line of code that I can write in DRC that will pull my python function in?
Hi,
DRC isn't Python, but it's a domain specific language (DSL) built on Ruby.
Ruby and Python aren't aware of each other, so you cannot call Ruby from Python and vice versa. But it should be pretty straightforward to write a CSV reader in Ruby.
For example I found this: https://snippets.aktagon.com/snippets/246-how-to-parse-csv-data-with-ruby
Regards,
Matthias