Skip to content

Commit 27f61f8

Browse files
committed
Release 0.0.95
1 parent 85f5f57 commit 27f61f8

File tree

7 files changed

+52
-45
lines changed

7 files changed

+52
-45
lines changed

reference.md

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1894,7 +1894,7 @@ client.pic.circuit.validate(
18941894
<dl>
18951895
<dd>
18961896

1897-
Formalize a query about a circuit into a dictionary of constraints
1897+
Formalize a query about a circuit into a dictionary of constraints. Extends previous statements if provided.
18981898
</dd>
18991899
</dl>
19001900
</dd>
@@ -1948,6 +1948,14 @@ client.pic.circuit.formalize(
19481948
<dl>
19491949
<dd>
19501950

1951+
**statements:** `typing.Optional[StatementDictionary]`
1952+
1953+
</dd>
1954+
</dl>
1955+
1956+
<dl>
1957+
<dd>
1958+
19511959
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
19521960

19531961
</dd>
@@ -2581,8 +2589,7 @@ client = Axiomatic(
25812589
)
25822590
client.pic.circuit.get_sax_spectrum(
25832591
netlist=Netlist(),
2584-
port_in="port_in",
2585-
port_out="port_out",
2592+
port_pairs=[[]],
25862593
settings={"key": "value"},
25872594
wls=[1.1],
25882595
)
@@ -2609,31 +2616,31 @@ client.pic.circuit.get_sax_spectrum(
26092616
<dl>
26102617
<dd>
26112618

2612-
**port_in:** `str`
2619+
**port_pairs:** `typing.Sequence[typing.Sequence[typing.Optional[typing.Any]]]`
26132620

26142621
</dd>
26152622
</dl>
26162623

26172624
<dl>
26182625
<dd>
26192626

2620-
**port_out:** `str`
2627+
**settings:** `Settings`
26212628

26222629
</dd>
26232630
</dl>
26242631

26252632
<dl>
26262633
<dd>
26272634

2628-
**settings:** `Settings`
2635+
**wls:** `typing.Sequence[float]`
26292636

26302637
</dd>
26312638
</dl>
26322639

26332640
<dl>
26342641
<dd>
26352642

2636-
**wls:** `typing.Sequence[float]`
2643+
**jit_compile:** `typing.Optional[bool]`
26372644

26382645
</dd>
26392646
</dl>

src/axiomatic/__init__.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
GenerateLensCodeResponse,
3131
GetOptimizableParametersResponse,
3232
GetSpectrumResponse,
33-
GetSpectrumResponseSpectrumItem,
33+
GetSpectrumResponseSpectrumValueItem,
3434
HttpValidationError,
3535
InformalizeStatementResponse,
3636
Net,
@@ -58,7 +58,6 @@
5858
ScheduleJobResponse,
5959
SolutionResponse,
6060
SolutionResponseSolutionValue,
61-
Spectrum,
6261
Statement,
6362
StatementDictionary,
6463
StatementType,
@@ -132,7 +131,7 @@
132131
"GenerateLensCodeResponse",
133132
"GetOptimizableParametersResponse",
134133
"GetSpectrumResponse",
135-
"GetSpectrumResponseSpectrumItem",
134+
"GetSpectrumResponseSpectrumValueItem",
136135
"HttpValidationError",
137136
"InformalizeStatementResponse",
138137
"Net",
@@ -160,7 +159,6 @@
160159
"ScheduleJobResponse",
161160
"SolutionResponse",
162161
"SolutionResponseSolutionValue",
163-
"Spectrum",
164162
"Statement",
165163
"StatementDictionary",
166164
"StatementType",

src/axiomatic/pic/circuit/client.py

Lines changed: 30 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -268,17 +268,20 @@ def formalize(
268268
*,
269269
query: str,
270270
pdk: typing.Optional[PdkType] = OMIT,
271+
statements: typing.Optional[StatementDictionary] = OMIT,
271272
request_options: typing.Optional[RequestOptions] = None,
272273
) -> FormalizeCircuitResponse:
273274
"""
274-
Formalize a query about a circuit into a dictionary of constraints
275+
Formalize a query about a circuit into a dictionary of constraints. Extends previous statements if provided.
275276
276277
Parameters
277278
----------
278279
query : str
279280
280281
pdk : typing.Optional[PdkType]
281282
283+
statements : typing.Optional[StatementDictionary]
284+
282285
request_options : typing.Optional[RequestOptions]
283286
Request-specific configuration.
284287
@@ -304,6 +307,9 @@ def formalize(
304307
json={
305308
"query": query,
306309
"pdk": pdk,
310+
"statements": convert_and_respect_annotation_metadata(
311+
object_=statements, annotation=StatementDictionary, direction="write"
312+
),
307313
},
308314
headers={
309315
"content-type": "application/json",
@@ -847,10 +853,10 @@ def get_sax_spectrum(
847853
self,
848854
*,
849855
netlist: Netlist,
850-
port_in: str,
851-
port_out: str,
856+
port_pairs: typing.Sequence[typing.Sequence[typing.Optional[typing.Any]]],
852857
settings: Settings,
853858
wls: typing.Sequence[float],
859+
jit_compile: typing.Optional[bool] = OMIT,
854860
use_ideal_component_models: typing.Optional[bool] = OMIT,
855861
request_options: typing.Optional[RequestOptions] = None,
856862
) -> GetSpectrumResponse:
@@ -861,14 +867,14 @@ def get_sax_spectrum(
861867
----------
862868
netlist : Netlist
863869
864-
port_in : str
865-
866-
port_out : str
870+
port_pairs : typing.Sequence[typing.Sequence[typing.Optional[typing.Any]]]
867871
868872
settings : Settings
869873
870874
wls : typing.Sequence[float]
871875
876+
jit_compile : typing.Optional[bool]
877+
872878
use_ideal_component_models : typing.Optional[bool]
873879
874880
request_options : typing.Optional[RequestOptions]
@@ -888,8 +894,7 @@ def get_sax_spectrum(
888894
)
889895
client.pic.circuit.get_sax_spectrum(
890896
netlist=Netlist(),
891-
port_in="port_in",
892-
port_out="port_out",
897+
port_pairs=[[]],
893898
settings={"key": "value"},
894899
wls=[1.1],
895900
)
@@ -901,8 +906,8 @@ def get_sax_spectrum(
901906
"netlist": convert_and_respect_annotation_metadata(
902907
object_=netlist, annotation=Netlist, direction="write"
903908
),
904-
"port_in": port_in,
905-
"port_out": port_out,
909+
"port_pairs": port_pairs,
910+
"jit_compile": jit_compile,
906911
"settings": convert_and_respect_annotation_metadata(
907912
object_=settings, annotation=Settings, direction="write"
908913
),
@@ -1271,17 +1276,20 @@ async def formalize(
12711276
*,
12721277
query: str,
12731278
pdk: typing.Optional[PdkType] = OMIT,
1279+
statements: typing.Optional[StatementDictionary] = OMIT,
12741280
request_options: typing.Optional[RequestOptions] = None,
12751281
) -> FormalizeCircuitResponse:
12761282
"""
1277-
Formalize a query about a circuit into a dictionary of constraints
1283+
Formalize a query about a circuit into a dictionary of constraints. Extends previous statements if provided.
12781284
12791285
Parameters
12801286
----------
12811287
query : str
12821288
12831289
pdk : typing.Optional[PdkType]
12841290
1291+
statements : typing.Optional[StatementDictionary]
1292+
12851293
request_options : typing.Optional[RequestOptions]
12861294
Request-specific configuration.
12871295
@@ -1315,6 +1323,9 @@ async def main() -> None:
13151323
json={
13161324
"query": query,
13171325
"pdk": pdk,
1326+
"statements": convert_and_respect_annotation_metadata(
1327+
object_=statements, annotation=StatementDictionary, direction="write"
1328+
),
13181329
},
13191330
headers={
13201331
"content-type": "application/json",
@@ -1906,10 +1917,10 @@ async def get_sax_spectrum(
19061917
self,
19071918
*,
19081919
netlist: Netlist,
1909-
port_in: str,
1910-
port_out: str,
1920+
port_pairs: typing.Sequence[typing.Sequence[typing.Optional[typing.Any]]],
19111921
settings: Settings,
19121922
wls: typing.Sequence[float],
1923+
jit_compile: typing.Optional[bool] = OMIT,
19131924
use_ideal_component_models: typing.Optional[bool] = OMIT,
19141925
request_options: typing.Optional[RequestOptions] = None,
19151926
) -> GetSpectrumResponse:
@@ -1920,14 +1931,14 @@ async def get_sax_spectrum(
19201931
----------
19211932
netlist : Netlist
19221933
1923-
port_in : str
1924-
1925-
port_out : str
1934+
port_pairs : typing.Sequence[typing.Sequence[typing.Optional[typing.Any]]]
19261935
19271936
settings : Settings
19281937
19291938
wls : typing.Sequence[float]
19301939
1940+
jit_compile : typing.Optional[bool]
1941+
19311942
use_ideal_component_models : typing.Optional[bool]
19321943
19331944
request_options : typing.Optional[RequestOptions]
@@ -1952,8 +1963,7 @@ async def get_sax_spectrum(
19521963
async def main() -> None:
19531964
await client.pic.circuit.get_sax_spectrum(
19541965
netlist=Netlist(),
1955-
port_in="port_in",
1956-
port_out="port_out",
1966+
port_pairs=[[]],
19571967
settings={"key": "value"},
19581968
wls=[1.1],
19591969
)
@@ -1968,8 +1978,8 @@ async def main() -> None:
19681978
"netlist": convert_and_respect_annotation_metadata(
19691979
object_=netlist, annotation=Netlist, direction="write"
19701980
),
1971-
"port_in": port_in,
1972-
"port_out": port_out,
1981+
"port_pairs": port_pairs,
1982+
"jit_compile": jit_compile,
19731983
"settings": convert_and_respect_annotation_metadata(
19741984
object_=settings, annotation=Settings, direction="write"
19751985
),

src/axiomatic/types/__init__.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
from .generate_lens_code_response import GenerateLensCodeResponse
3030
from .get_optimizable_parameters_response import GetOptimizableParametersResponse
3131
from .get_spectrum_response import GetSpectrumResponse
32-
from .get_spectrum_response_spectrum_item import GetSpectrumResponseSpectrumItem
32+
from .get_spectrum_response_spectrum_value_item import GetSpectrumResponseSpectrumValueItem
3333
from .http_validation_error import HttpValidationError
3434
from .informalize_statement_response import InformalizeStatementResponse
3535
from .net import Net
@@ -57,7 +57,6 @@
5757
from .schedule_job_response import ScheduleJobResponse
5858
from .solution_response import SolutionResponse
5959
from .solution_response_solution_value import SolutionResponseSolutionValue
60-
from .spectrum import Spectrum
6160
from .statement import Statement
6261
from .statement_dictionary import StatementDictionary
6362
from .statement_type import StatementType
@@ -111,7 +110,7 @@
111110
"GenerateLensCodeResponse",
112111
"GetOptimizableParametersResponse",
113112
"GetSpectrumResponse",
114-
"GetSpectrumResponseSpectrumItem",
113+
"GetSpectrumResponseSpectrumValueItem",
115114
"HttpValidationError",
116115
"InformalizeStatementResponse",
117116
"Net",
@@ -139,7 +138,6 @@
139138
"ScheduleJobResponse",
140139
"SolutionResponse",
141140
"SolutionResponseSolutionValue",
142-
"Spectrum",
143141
"Statement",
144142
"StatementDictionary",
145143
"StatementType",

src/axiomatic/types/get_spectrum_response.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# This file was auto-generated by Fern from our API Definition.
22

33
from ..core.pydantic_utilities import UniversalBaseModel
4-
from .spectrum import Spectrum
5-
from ..core.pydantic_utilities import IS_PYDANTIC_V2
64
import typing
5+
from .get_spectrum_response_spectrum_value_item import GetSpectrumResponseSpectrumValueItem
6+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
77
import pydantic
88

99

1010
class GetSpectrumResponse(UniversalBaseModel):
11-
spectrum: Spectrum
11+
spectrum: typing.Dict[str, typing.List[GetSpectrumResponseSpectrumValueItem]]
1212

1313
if IS_PYDANTIC_V2:
1414
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2

src/axiomatic/types/get_spectrum_response_spectrum_item.py renamed to src/axiomatic/types/get_spectrum_response_spectrum_value_item.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
import typing
44

5-
GetSpectrumResponseSpectrumItem = typing.Union[typing.List[float], float]
5+
GetSpectrumResponseSpectrumValueItem = typing.Union[typing.List[float], float]

src/axiomatic/types/spectrum.py

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)