Skip to content

Commit 1e6758a

Browse files
committed
Release 0.0.98
1 parent d7f9b87 commit 1e6758a

File tree

15 files changed

+804
-499
lines changed

15 files changed

+804
-499
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.97"
6+
version = "0.0.98"
77
description = ""
88
readme = "README.md"
99
authors = []

reference.md

Lines changed: 135 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -902,8 +902,8 @@ client.tools.list()
902902
</dl>
903903
</details>
904904

905-
## EquationValidation
906-
<details><summary><code>client.equation_validation.<a href="src/axiomatic/equation_validation/client.py">validate_equations</a>(...)</code></summary>
905+
## CodeExecution Python
906+
<details><summary><code>client.code_execution.python.<a href="src/axiomatic/code_execution/python/client.py">execute</a>(...)</code></summary>
907907
<dl>
908908
<dd>
909909

@@ -915,8 +915,7 @@ client.tools.list()
915915
<dl>
916916
<dd>
917917

918-
Validates a set of variables against stored equations to check for inconsistencies.
919-
Returns validation results for each relevant equation.
918+
Execute python code, and return the standard output. If an error occurs, it will be returned in the error_trace field. Importing from the following modules is supported: gdsfactory, z3, json
920919
</dd>
921920
</dl>
922921
</dd>
@@ -931,21 +930,13 @@ Returns validation results for each relevant equation.
931930
<dd>
932931

933932
```python
934-
from axiomatic import Axiomatic, VariableRequirement
933+
from axiomatic import Axiomatic
935934

936935
client = Axiomatic(
937936
api_key="YOUR_API_KEY",
938937
)
939-
client.equation_validation.validate_equations(
940-
request=[
941-
VariableRequirement(
942-
symbol="symbol",
943-
name="name",
944-
value=1.1,
945-
units="units",
946-
tolerance=1.1,
947-
)
948-
],
938+
client.code_execution.python.execute(
939+
code="code",
949940
)
950941

951942
```
@@ -962,7 +953,7 @@ client.equation_validation.validate_equations(
962953
<dl>
963954
<dd>
964955

965-
**request:** `typing.Sequence[VariableRequirement]`
956+
**code:** `str`
966957

967958
</dd>
968959
</dl>
@@ -982,8 +973,8 @@ client.equation_validation.validate_equations(
982973
</dl>
983974
</details>
984975

985-
## EquationProcessing
986-
<details><summary><code>client.equation_processing.<a href="src/axiomatic/equation_processing/client.py">get_all_variables</a>()</code></summary>
976+
## Document Plot
977+
<details><summary><code>client.document.plot.<a href="src/axiomatic/document/plot/client.py">points</a>(...)</code></summary>
987978
<dl>
988979
<dd>
989980

@@ -995,7 +986,7 @@ client.equation_validation.validate_equations(
995986
<dl>
996987
<dd>
997988

998-
Get all avail. vars to allow user choose requirements
989+
Extracts points from plots
999990
</dd>
1000991
</dl>
1001992
</dd>
@@ -1015,7 +1006,7 @@ from axiomatic import Axiomatic
10151006
client = Axiomatic(
10161007
api_key="YOUR_API_KEY",
10171008
)
1018-
client.equation_processing.get_all_variables()
1009+
client.document.plot.points()
10191010

10201011
```
10211012
</dd>
@@ -1031,6 +1022,40 @@ client.equation_processing.get_all_variables()
10311022
<dl>
10321023
<dd>
10331024

1025+
**plot_img:** `from __future__ import annotations
1026+
1027+
core.File` — See core.File for more documentation
1028+
1029+
</dd>
1030+
</dl>
1031+
1032+
<dl>
1033+
<dd>
1034+
1035+
**method:** `typing.Optional[int]` — Can specify a specific method to extract points
1036+
1037+
</dd>
1038+
</dl>
1039+
1040+
<dl>
1041+
<dd>
1042+
1043+
**plot_info:** `typing.Optional[str]` — Can add specific plot info
1044+
1045+
</dd>
1046+
</dl>
1047+
1048+
<dl>
1049+
<dd>
1050+
1051+
**get_img_coords:** `typing.Optional[bool]` — Whether to get coords of points on image
1052+
1053+
</dd>
1054+
</dl>
1055+
1056+
<dl>
1057+
<dd>
1058+
10341059
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
10351060

10361061
</dd>
@@ -1043,7 +1068,8 @@ client.equation_processing.get_all_variables()
10431068
</dl>
10441069
</details>
10451070

1046-
<details><summary><code>client.equation_processing.<a href="src/axiomatic/equation_processing/client.py">extract_from_document</a>(...)</code></summary>
1071+
## Document Equation
1072+
<details><summary><code>client.document.equation.<a href="src/axiomatic/document/equation/client.py">user_variables</a>()</code></summary>
10471073
<dl>
10481074
<dd>
10491075

@@ -1055,7 +1081,7 @@ client.equation_processing.get_all_variables()
10551081
<dl>
10561082
<dd>
10571083

1058-
Extract equations from a document into the database
1084+
Get all variables from the DB so the user can choose which variables they want to use in axtract for for their consistency checks.
10591085
</dd>
10601086
</dl>
10611087
</dd>
@@ -1075,7 +1101,7 @@ from axiomatic import Axiomatic
10751101
client = Axiomatic(
10761102
api_key="YOUR_API_KEY",
10771103
)
1078-
client.equation_processing.extract_from_document()
1104+
client.document.equation.user_variables()
10791105

10801106
```
10811107
</dd>
@@ -1091,9 +1117,78 @@ client.equation_processing.extract_from_document()
10911117
<dl>
10921118
<dd>
10931119

1094-
**document:** `from __future__ import annotations
1120+
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
1121+
1122+
</dd>
1123+
</dl>
1124+
</dd>
1125+
</dl>
10951126

1096-
core.File` — See core.File for more documentation
1127+
1128+
</dd>
1129+
</dl>
1130+
</details>
1131+
1132+
<details><summary><code>client.document.equation.<a href="src/axiomatic/document/equation/client.py">validate</a>(...)</code></summary>
1133+
<dl>
1134+
<dd>
1135+
1136+
#### 📝 Description
1137+
1138+
<dl>
1139+
<dd>
1140+
1141+
<dl>
1142+
<dd>
1143+
1144+
Validates a set of variables against stored equations to check for inconsistencies.
1145+
Returns validation results for each relevant equation.
1146+
</dd>
1147+
</dl>
1148+
</dd>
1149+
</dl>
1150+
1151+
#### 🔌 Usage
1152+
1153+
<dl>
1154+
<dd>
1155+
1156+
<dl>
1157+
<dd>
1158+
1159+
```python
1160+
from axiomatic import Axiomatic, VariableRequirement
1161+
1162+
client = Axiomatic(
1163+
api_key="YOUR_API_KEY",
1164+
)
1165+
client.document.equation.validate(
1166+
request=[
1167+
VariableRequirement(
1168+
symbol="symbol",
1169+
name="name",
1170+
value=1.1,
1171+
units="units",
1172+
tolerance=1.1,
1173+
)
1174+
],
1175+
)
1176+
1177+
```
1178+
</dd>
1179+
</dl>
1180+
</dd>
1181+
</dl>
1182+
1183+
#### ⚙️ Parameters
1184+
1185+
<dl>
1186+
<dd>
1187+
1188+
<dl>
1189+
<dd>
1190+
1191+
**request:** `typing.Sequence[VariableRequirement]`
10971192

10981193
</dd>
10991194
</dl>
@@ -1113,8 +1208,7 @@ core.File` — See core.File for more documentation
11131208
</dl>
11141209
</details>
11151210

1116-
## CodeExecution Python
1117-
<details><summary><code>client.code_execution.python.<a href="src/axiomatic/code_execution/python/client.py">execute</a>(...)</code></summary>
1211+
<details><summary><code>client.document.equation.<a href="src/axiomatic/document/equation/client.py">from_pdf</a>(...)</code></summary>
11181212
<dl>
11191213
<dd>
11201214

@@ -1126,7 +1220,7 @@ core.File` — See core.File for more documentation
11261220
<dl>
11271221
<dd>
11281222

1129-
Execute python code, and return the standard output. If an error occurs, it will be returned in the error_trace field. Importing from the following modules is supported: gdsfactory, z3, json
1223+
Extract equations from a document into the database
11301224
</dd>
11311225
</dl>
11321226
</dd>
@@ -1146,9 +1240,7 @@ from axiomatic import Axiomatic
11461240
client = Axiomatic(
11471241
api_key="YOUR_API_KEY",
11481242
)
1149-
client.code_execution.python.execute(
1150-
code="code",
1151-
)
1243+
client.document.equation.from_pdf()
11521244

11531245
```
11541246
</dd>
@@ -1164,7 +1256,9 @@ client.code_execution.python.execute(
11641256
<dl>
11651257
<dd>
11661258

1167-
**code:** `str`
1259+
**document:** `from __future__ import annotations
1260+
1261+
core.File` — See core.File for more documentation
11681262

11691263
</dd>
11701264
</dl>
@@ -1184,8 +1278,7 @@ client.code_execution.python.execute(
11841278
</dl>
11851279
</details>
11861280

1187-
## Document Plot
1188-
<details><summary><code>client.document.plot.<a href="src/axiomatic/document/plot/client.py">points</a>(...)</code></summary>
1281+
<details><summary><code>client.document.equation.<a href="src/axiomatic/document/equation/client.py">process</a>(...)</code></summary>
11891282
<dl>
11901283
<dd>
11911284

@@ -1197,7 +1290,7 @@ client.code_execution.python.execute(
11971290
<dl>
11981291
<dd>
11991292

1200-
Extracts points from plots
1293+
Process all equations at once and return their annotation
12011294
</dd>
12021295
</dl>
12031296
</dd>
@@ -1217,7 +1310,9 @@ from axiomatic import Axiomatic
12171310
client = Axiomatic(
12181311
api_key="YOUR_API_KEY",
12191312
)
1220-
client.document.plot.points()
1313+
client.document.equation.process(
1314+
markdown="markdown",
1315+
)
12211316

12221317
```
12231318
</dd>
@@ -1233,33 +1328,31 @@ client.document.plot.points()
12331328
<dl>
12341329
<dd>
12351330

1236-
**plot_img:** `from __future__ import annotations
1237-
1238-
core.File` — See core.File for more documentation
1331+
**markdown:** `str`
12391332

12401333
</dd>
12411334
</dl>
12421335

12431336
<dl>
12441337
<dd>
12451338

1246-
**method:** `typing.Optional[int]` — Can specify a specific method to extract points
1339+
**images:** `typing.Optional[typing.Dict[str, str]]`
12471340

12481341
</dd>
12491342
</dl>
12501343

12511344
<dl>
12521345
<dd>
12531346

1254-
**plot_info:** `typing.Optional[str]` — Can add specific plot info
1347+
**interline_equations:** `typing.Optional[typing.Sequence[str]]`
12551348

12561349
</dd>
12571350
</dl>
12581351

12591352
<dl>
12601353
<dd>
12611354

1262-
**get_img_coords:** `typing.Optional[bool]` — Whether to get coords of points on image
1355+
**inline_equations:** `typing.Optional[typing.Sequence[str]]`
12631356

12641357
</dd>
12651358
</dl>

0 commit comments

Comments
 (0)