Dear Prof. Song,
Thank you very much for your excellent work on the Inkstone package.
I have been using the AddPatternEllipse method to add multiple ellipses to the same layer, for example:
s.AddPatternEllipse(layer= 'slab', pattern_name = "ellipse1", material = 'vacuum', half_lengths = (0.1, 0.2), center = (0.5, 0.5), angle = 30)
s.AddPatternEllipse(layer= 'slab', pattern_name = "ellipse2", material = 'vacuum', half_lengths = (0.1, 0.2), center = (1.5, 0.5), angle = -30)
However, when I add the second ellipse, I encounter the following error:
AttributeError: 'Elli' object has no attribute 'half_widths'
I noticed that in AddPatternEllipse, the ellipse parameters are passed as half_lengths, but elsewhere in the code the ellipse shape is assumed to have a half_widths attribute. Do you think this discrepancy between half_lengths and half_widths could be causing the error? Is there a recommended workaround or a patch you would suggest to ensure that multiple ellipses can be added to the same layer without issue?
Thank you again for your time and for developing Inkstone. I look forward to your guidance.
Dear Prof. Song,
Thank you very much for your excellent work on the Inkstone package.
I have been using the AddPatternEllipse method to add multiple ellipses to the same layer, for example:
s.AddPatternEllipse(layer= 'slab', pattern_name = "ellipse1", material = 'vacuum', half_lengths = (0.1, 0.2), center = (0.5, 0.5), angle = 30)
s.AddPatternEllipse(layer= 'slab', pattern_name = "ellipse2", material = 'vacuum', half_lengths = (0.1, 0.2), center = (1.5, 0.5), angle = -30)
However, when I add the second ellipse, I encounter the following error:
AttributeError: 'Elli' object has no attribute 'half_widths'
I noticed that in AddPatternEllipse, the ellipse parameters are passed as half_lengths, but elsewhere in the code the ellipse shape is assumed to have a half_widths attribute. Do you think this discrepancy between half_lengths and half_widths could be causing the error? Is there a recommended workaround or a patch you would suggest to ensure that multiple ellipses can be added to the same layer without issue?
Thank you again for your time and for developing Inkstone. I look forward to your guidance.