Skip to content

Commit 5a82ef5

Browse files
committed
Release 0.0.116
1 parent de8b3a3 commit 5a82ef5

File tree

4 files changed

+10
-25
lines changed

4 files changed

+10
-25
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "axiomatic"
33

44
[tool.poetry]
55
name = "axiomatic"
6-
version = "0.0.115"
6+
version = "0.0.116"
77
description = ""
88
readme = "README.md"
99
authors = []

reference.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2419,19 +2419,14 @@ Optimize a PIC circuit with given cost and constraints
24192419
<dd>
24202420

24212421
```python
2422-
from axiomatic import Axiomatic, Netlist, Parameter, StatementDictionary
2422+
from axiomatic import Axiomatic, Netlist, StatementDictionary
24232423

24242424
client = Axiomatic(
24252425
api_key="YOUR_API_KEY",
24262426
)
24272427
client.pic.circuit.optimize(
24282428
netlist=Netlist(),
24292429
statements=StatementDictionary(),
2430-
parameters=[
2431-
Parameter(
2432-
path="path",
2433-
)
2434-
],
24352430
)
24362431

24372432
```
@@ -2464,7 +2459,7 @@ client.pic.circuit.optimize(
24642459
<dl>
24652460
<dd>
24662461

2467-
**parameters:** `typing.Sequence[Parameter]`
2462+
**parameters:** `typing.Optional[typing.Sequence[Parameter]]`
24682463

24692464
</dd>
24702465
</dl>

src/axiomatic/core/client_wrapper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def get_headers(self) -> typing.Dict[str, str]:
1616
headers: typing.Dict[str, str] = {
1717
"X-Fern-Language": "Python",
1818
"X-Fern-SDK-Name": "axiomatic",
19-
"X-Fern-SDK-Version": "0.0.115",
19+
"X-Fern-SDK-Version": "0.0.116",
2020
}
2121
headers["X-API-Key"] = self.api_key
2222
return headers

src/axiomatic/pic/circuit/client.py

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@ def optimize(
613613
*,
614614
netlist: Netlist,
615615
statements: StatementDictionary,
616-
parameters: typing.Sequence[Parameter],
616+
parameters: typing.Optional[typing.Sequence[Parameter]] = OMIT,
617617
mapping: typing.Optional[typing.Dict[str, typing.Optional[Computation]]] = OMIT,
618618
config: typing.Optional[OptimizeConfig] = OMIT,
619619
use_ideal_component_models: typing.Optional[bool] = OMIT,
@@ -628,7 +628,7 @@ def optimize(
628628
629629
statements : StatementDictionary
630630
631-
parameters : typing.Sequence[Parameter]
631+
parameters : typing.Optional[typing.Sequence[Parameter]]
632632
633633
mapping : typing.Optional[typing.Dict[str, typing.Optional[Computation]]]
634634
@@ -646,19 +646,14 @@ def optimize(
646646
647647
Examples
648648
--------
649-
from axiomatic import Axiomatic, Netlist, Parameter, StatementDictionary
649+
from axiomatic import Axiomatic, Netlist, StatementDictionary
650650
651651
client = Axiomatic(
652652
api_key="YOUR_API_KEY",
653653
)
654654
client.pic.circuit.optimize(
655655
netlist=Netlist(),
656656
statements=StatementDictionary(),
657-
parameters=[
658-
Parameter(
659-
path="path",
660-
)
661-
],
662657
)
663658
"""
664659
_response = self._client_wrapper.httpx_client.request(
@@ -1649,7 +1644,7 @@ async def optimize(
16491644
*,
16501645
netlist: Netlist,
16511646
statements: StatementDictionary,
1652-
parameters: typing.Sequence[Parameter],
1647+
parameters: typing.Optional[typing.Sequence[Parameter]] = OMIT,
16531648
mapping: typing.Optional[typing.Dict[str, typing.Optional[Computation]]] = OMIT,
16541649
config: typing.Optional[OptimizeConfig] = OMIT,
16551650
use_ideal_component_models: typing.Optional[bool] = OMIT,
@@ -1664,7 +1659,7 @@ async def optimize(
16641659
16651660
statements : StatementDictionary
16661661
1667-
parameters : typing.Sequence[Parameter]
1662+
parameters : typing.Optional[typing.Sequence[Parameter]]
16681663
16691664
mapping : typing.Optional[typing.Dict[str, typing.Optional[Computation]]]
16701665
@@ -1684,7 +1679,7 @@ async def optimize(
16841679
--------
16851680
import asyncio
16861681
1687-
from axiomatic import AsyncAxiomatic, Netlist, Parameter, StatementDictionary
1682+
from axiomatic import AsyncAxiomatic, Netlist, StatementDictionary
16881683
16891684
client = AsyncAxiomatic(
16901685
api_key="YOUR_API_KEY",
@@ -1695,11 +1690,6 @@ async def main() -> None:
16951690
await client.pic.circuit.optimize(
16961691
netlist=Netlist(),
16971692
statements=StatementDictionary(),
1698-
parameters=[
1699-
Parameter(
1700-
path="path",
1701-
)
1702-
],
17031693
)
17041694
17051695

0 commit comments

Comments
 (0)