setta 0.0.15.dev0__py3-none-any.whl → 0.0.15.dev1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- setta/__init__.py +1 -1
- setta/tasks/tasks.py +19 -5
- {setta-0.0.15.dev0.dist-info → setta-0.0.15.dev1.dist-info}/METADATA +1 -1
- {setta-0.0.15.dev0.dist-info → setta-0.0.15.dev1.dist-info}/RECORD +8 -8
- {setta-0.0.15.dev0.dist-info → setta-0.0.15.dev1.dist-info}/LICENSE +0 -0
- {setta-0.0.15.dev0.dist-info → setta-0.0.15.dev1.dist-info}/WHEEL +0 -0
- {setta-0.0.15.dev0.dist-info → setta-0.0.15.dev1.dist-info}/entry_points.txt +0 -0
- {setta-0.0.15.dev0.dist-info → setta-0.0.15.dev1.dist-info}/top_level.txt +0 -0
setta/__init__.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__version__ = "0.0.15.
|
1
|
+
__version__ = "0.0.15.dev1"
|
setta/tasks/tasks.py
CHANGED
@@ -64,6 +64,7 @@ class Tasks:
|
|
64
64
|
message: TaskMessage,
|
65
65
|
websocket_manager=None,
|
66
66
|
call_all=False,
|
67
|
+
call_fns_with_empty_dependency_array=False,
|
67
68
|
subprocess_key=None,
|
68
69
|
project_config_id=None,
|
69
70
|
section_id=None,
|
@@ -87,11 +88,10 @@ class Tasks:
|
|
87
88
|
# For each matching subprocess, collect all functions that need to be called
|
88
89
|
fns_to_call = []
|
89
90
|
for fn_name, fnInfo in sp_info["fnInfo"].items():
|
90
|
-
if (
|
91
|
-
call_all
|
92
|
-
or None in fnInfo["dependencies"]
|
93
|
-
or any(k in fnInfo["dependencies"] for k in message.content.keys())
|
91
|
+
if call_fn_condition(
|
92
|
+
call_all, call_fns_with_empty_dependency_array, fnInfo, message
|
94
93
|
):
|
94
|
+
print('fnInfo["dependencies"]', fnInfo["dependencies"], flush=True)
|
95
95
|
fns_to_call.append(fn_name)
|
96
96
|
|
97
97
|
if fns_to_call:
|
@@ -231,7 +231,7 @@ class Tasks:
|
|
231
231
|
):
|
232
232
|
initial_result = await self.call_in_memory_subprocess_fn(
|
233
233
|
TaskMessage(id=create_new_id(), content={}),
|
234
|
-
|
234
|
+
call_fns_with_empty_dependency_array=True,
|
235
235
|
project_config_id=project_config_id,
|
236
236
|
idx=idx,
|
237
237
|
call_type="call_with_new_exporter_obj",
|
@@ -305,3 +305,17 @@ def match_subprocess_key(
|
|
305
305
|
return False
|
306
306
|
|
307
307
|
return True
|
308
|
+
|
309
|
+
|
310
|
+
def call_fn_condition(call_all, call_fns_with_empty_dependency_array, fnInfo, message):
|
311
|
+
return (
|
312
|
+
call_all
|
313
|
+
or (call_fns_with_empty_dependency_array and not fnInfo["dependencies"])
|
314
|
+
or (
|
315
|
+
not call_fns_with_empty_dependency_array
|
316
|
+
and (
|
317
|
+
None in fnInfo["dependencies"]
|
318
|
+
or any(k in fnInfo["dependencies"] for k in message.content)
|
319
|
+
)
|
320
|
+
)
|
321
|
+
)
|
@@ -1,4 +1,4 @@
|
|
1
|
-
setta/__init__.py,sha256=
|
1
|
+
setta/__init__.py,sha256=PPyGPEl5RHRcrbQDPQNFXA758s8ZEaqDN9JKrrazFDE,28
|
2
2
|
setta/server.py,sha256=q4w9WG7SuLxwYtgXUCQyLt7t_HLmQV4y5abqvm7-uEA,4861
|
3
3
|
setta/start.py,sha256=5sMZ7WH3KV9Q0v186PsaYqsWOz7hebyrpXbBOp9wQww,3589
|
4
4
|
setta/cli/__init__.py,sha256=UxZG_VOMuF6lEBT3teUgTS9ulsK3wt3Gu3BbAQiAmt8,47
|
@@ -230,7 +230,7 @@ setta/static/seed/.DS_Store,sha256=ENxJvDQd7Te_U8gExcXtHE-mAeBUYOHELRfDWgN1NmA,6
|
|
230
230
|
setta/static/seed/examples/.DS_Store,sha256=1lFlJ5EFymdzGAUAaI30vcaaLHt3F1LwpG7xILf9jsM,6148
|
231
231
|
setta/tasks/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
232
232
|
setta/tasks/task_runner.py,sha256=gMXpfZWFMQbix2MfrHVCKB7BxQCjO8JH2P8cxUmt1ms,849
|
233
|
-
setta/tasks/tasks.py,sha256=
|
233
|
+
setta/tasks/tasks.py,sha256=dME1fs6uQ6MMEgQOwmMWNgPNW0lQiNmyceC3VPZBkcU,11530
|
234
234
|
setta/tasks/utils.py,sha256=iqbsLYBcu4Qd-MAHd0SWK9wPaJezgEh1Yg5YC9goOLU,10631
|
235
235
|
setta/tasks/fns/__init__.py,sha256=JhGzzQGaT9BWtF3pOmguh6pzIF9kdG3jdDNLyYZ2w7g,461
|
236
236
|
setta/tasks/fns/codeAreaAutocomplete.py,sha256=gJ5JbjkWDyTothr-UF-YlOxrbVzj2iyOVK7XD3lfhSQ,6416
|
@@ -252,9 +252,9 @@ setta/utils/generate_new_filename.py,sha256=KBLX6paDmTvXR-027TpqQkfijIXc7mCfhen-
|
|
252
252
|
setta/utils/section_contents.py,sha256=V2HQPik6DfSXw4j7IalbP5AZ3OEGCbtL5ub3xL-Q_Qo,4141
|
253
253
|
setta/utils/utils.py,sha256=KjzcvgM3Ab3IcE8vaWYtgBpwzPLKg0LmblnHLoYZJHM,9164
|
254
254
|
setta/utils/websocket_manager.py,sha256=MBIMI8xxOFQF4lT3on4pupi1ttEWXdWPV4fI2YP_UJU,3925
|
255
|
-
setta-0.0.15.
|
256
|
-
setta-0.0.15.
|
257
|
-
setta-0.0.15.
|
258
|
-
setta-0.0.15.
|
259
|
-
setta-0.0.15.
|
260
|
-
setta-0.0.15.
|
255
|
+
setta-0.0.15.dev1.dist-info/LICENSE,sha256=us9fuCq9wmiZVzayjKxNZ2iJYF6dROe0Qp57ToCO7XU,11361
|
256
|
+
setta-0.0.15.dev1.dist-info/METADATA,sha256=ZfIcUxJDTl16yCJif1lfxqUBhXi0IMwRy3_BrJpocRw,7202
|
257
|
+
setta-0.0.15.dev1.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
|
258
|
+
setta-0.0.15.dev1.dist-info/entry_points.txt,sha256=P0qCESy9fWF2q1EQ9JufGldCSnPHplDPn8J6Bgk5hB0,42
|
259
|
+
setta-0.0.15.dev1.dist-info/top_level.txt,sha256=8G4lmRzVOnJ11_DescPVHE6MQZH-o06A0nGsDDV2ngY,6
|
260
|
+
setta-0.0.15.dev1.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|