flexcompute / tidy3d

Fast electromagnetic solver (FDTD) at scale.
https://www.flexcompute.com/tidy3d/solver/
GNU Lesser General Public License v2.1
163 stars 41 forks source link

pydantic v2 port #1239

Open tylerflex opened 8 months ago

tylerflex commented 8 months ago

We ported to pydantic 2.* by importing pydantic.v1, but it would be good to do a full port.

There are many internals that utilize v1 features, so it's an opportunity to dive pretty deep into the front end code, convert them to v2 syntax, and potentially simplify them if they are not needed anymore or there are simpler ways to handle them.

I took a stab at it here but couldn't get it 100% working and there are some loose ends I'm not 100% sure about. It's also possible these changes messed with our docs build, I didn't check that yet.

@daquinteroflex depending on how much time you have, maybe after the docs merging and poetry, we can try wrapping this up and that will help us future-proof tidy3d.

daquinteroflex commented 4 months ago