Skip to content

Commit

Permalink
Start modification to class based structure
Browse files Browse the repository at this point in the history
  • Loading branch information
daquinteroflex committed Nov 1, 2024
1 parent 85c8df0 commit 1197f39
Show file tree
Hide file tree
Showing 7 changed files with 1,029 additions and 8 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "packages/tidy3d"]
path = packages/tidy3d
url = [email protected]:flexcompute/tidy3d.git
1 change: 1 addition & 0 deletions autoflex/extractors/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from typing import Any, Callable, Dict, List, Optional, Type

from pydantic import BaseModel, ConfigDict, create_model, Field
from pydantic._internal.
from pydantic.fields import FieldInfo
from typing_extensions import TypeGuard

Expand Down
1 change: 1 addition & 0 deletions autoflex/types/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from autoflex.types.input import AutoflexInputClassTypes
from autoflex.types.property import PhysicalProperty, Property, PropertyTypes
from autoflex.types.descriptors import Symbolic, SymbolicTypes, Unit, UnitTypes
from autoflex.types.field_info import PhysicalFieldInfo, FieldTypes
Expand Down
10 changes: 10 additions & 0 deletions autoflex/types/input.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import pydantic as pd
import pydantic.v1 as pd1

AutoflexInputClassTypes = \
pd._internal._model_construction.ModelMetaclass |
pd1._internal._model_construction.ModelMetaclass |
pd.BaseModel |
pd1.BaseModel


1 change: 1 addition & 0 deletions docs/examples/tidy3d.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@

.. currentmodule:: tidy3d

.. autoflex:: tidy3d.Simulation
Loading

0 comments on commit 1197f39

Please sign in to comment.