-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Better repr representation of Tidy3D Medium when calling print #2307
Comments
Yeah agreed! It'd be really cool if we can make our representations more graphical and even in a notebook to be more visually interactive in some form |
could try pretty print? https://docs.python.org/3/library/pprint.html |
i'm not sure how much we want to do for however, i think where we really might want to address this is in the material library. i looked through that a bit today and the data structures in there are not super obvious. ideally i think we would be able to essentially the only |
Currently when I look at the optical or electrical medium this is what I see. It's hard to say by looking at the PoleResidue model what this material is. For example. this is SiO2 from our material library.
{'optical': PoleResidue(attrs={}, name=None, frequency_range=(59958491600000.0, 1998616386666666.8), allow_gain=False, nonlinear_spec=None, modulation_spec=None, viz_spec=None, heat_spec=None, type='PoleResidue', eps_inf=1.5385442336875639, poles=(((-11504139.374277674-1.595196740783775e+16j), (7507685.43042605+4535416182817100j)), ((-249390.3565044153-172280738540723.53j), (46272.506981344035+99704543223121.88j)))), 'electrical': Medium(attrs={}, name='SiO2', frequency_range=None, allow_gain=False, nonlinear_spec=None, modulation_spec=None, viz_spec=None, heat_spec=None, type='Medium', permittivity=3.9, conductivity=0.0)}
The text was updated successfully, but these errors were encountered: