pycoze 0.1.65__py3-none-any.whl → 0.1.66__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
pycoze/ui/base.py CHANGED
@@ -18,16 +18,16 @@ def get_ui():
18
18
  return {}
19
19
  stack = inspect.stack()
20
20
  stack_files = list(reversed([s.filename.replace("\\", "/") for s in stack]))
21
- match_item = None
21
+ match_index = None
22
22
  for f in stack_files:
23
- for v in params["uiData"]["uiFiles"]:
23
+ for i, v in enumerate(params["uiData"]["uiFiles"]):
24
24
  if v == f:
25
- match_item = v
25
+ match_index = i
26
26
  break
27
- if match_item:
27
+ if match_index is not None:
28
28
  break
29
29
 
30
- if not match_item:
30
+ if match_index is None:
31
31
  raise Exception("uiData not found for file")
32
32
 
33
33
  by = params["uiData"]["by"]
@@ -35,12 +35,12 @@ def get_ui():
35
35
  for i in range(10):
36
36
  try:
37
37
  if by == "file":
38
- json_file = match_item["Jsonfile"]
38
+ json_file = params["uiData"]["jsonFiles"][match_index]
39
39
  with open(json_file, "r", encoding="utf-8") as f:
40
40
  return json.load(f)
41
41
  else:
42
42
  assert by == "node"
43
- workflow_file = match_item["workflowFile"]
43
+ workflow_file = match_item["_workflowFile"]
44
44
  node_id = match_item["nodeId"]
45
45
  with open(workflow_file, "r", encoding="utf-8") as f:
46
46
  cells = json.load(f)["graph"]["cells"]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pycoze
3
- Version: 0.1.65
3
+ Version: 0.1.66
4
4
  Summary: Package for pycoze only!
5
5
  Author: Yuan Jie Xiong
6
6
  Author-email: aiqqqqqqq@qq.com
@@ -15,15 +15,15 @@ pycoze/bot/agent/agent_types/react_prompt.py,sha256=jyovokGaPzNIe5bvTRvn0gmsWLx5
15
15
  pycoze/gpu/__init__.py,sha256=cuxwDdz2Oo-VcwZ50FtFtEIJXdqoz2el-n0QpSt_NMc,75
16
16
  pycoze/gpu/gpu_reserve.py,sha256=T-M1w8DiQQNtyNVok9Fj9qXGfTs5mxJp-gw-rxs50es,5410
17
17
  pycoze/ui/__init__.py,sha256=7xAfL2lfG7-jllPJEZUJO89xUE9sNzvo1y0WmBswjBI,458
18
- pycoze/ui/base.py,sha256=JvvquMGzvvjVtnqrTh6gckY6MLuGFHwf1RUTgjBxvCk,1473
18
+ pycoze/ui/base.py,sha256=YDkMI7nXLNYO_NHR9stm2fhsMPDLKlbV2mo11hhQj5k,1528
19
19
  pycoze/ui/color.py,sha256=cT9Ib8uNzkOKxyW0IwVj46o4LwdB1xgNCj1_Rou9d_4,854
20
20
  pycoze/ui/typ.py,sha256=NpT0FrbHvByOszBZMFtroRp7I7pN-38tYz_zPOPejF4,1723
21
21
  pycoze/ui/ui_def.py,sha256=UhhU_yB3GV9ISbvTWT48hsHPHI250BhMILh6bu5Uioo,4206
22
22
  pycoze/utils/__init__.py,sha256=KExBkotf23dr2NfTEouWke5nJB1q2IuDXgHrmuyd95k,73
23
23
  pycoze/utils/arg.py,sha256=AhOobJNjifCf7dKKPZa7AsN7CcZg3OSECUp9TZIrDTI,748
24
24
  pycoze/utils/text_or_file.py,sha256=gpxZVWt2DW6YiEg_MnMuwg36VNf3TX383QD_1oZNB0Y,551
25
- pycoze-0.1.65.dist-info/LICENSE,sha256=QStd_Qsd0-kAam_-sOesCIp_uKrGWeoKwt9M49NVkNU,1090
26
- pycoze-0.1.65.dist-info/METADATA,sha256=M_OFe1yshSrXcQ59BPIq9KnZAvSjwu5Pngzr4SK8p0o,719
27
- pycoze-0.1.65.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
28
- pycoze-0.1.65.dist-info/top_level.txt,sha256=76dPeDhKvOCleL3ZC5gl1-y4vdS1tT_U1hxWVAn7sFo,7
29
- pycoze-0.1.65.dist-info/RECORD,,
25
+ pycoze-0.1.66.dist-info/LICENSE,sha256=QStd_Qsd0-kAam_-sOesCIp_uKrGWeoKwt9M49NVkNU,1090
26
+ pycoze-0.1.66.dist-info/METADATA,sha256=aUlu2UJw4yiZCDnNuURdU3gnFsA6f_fHmS9ByvSXa0g,719
27
+ pycoze-0.1.66.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
28
+ pycoze-0.1.66.dist-info/top_level.txt,sha256=76dPeDhKvOCleL3ZC5gl1-y4vdS1tT_U1hxWVAn7sFo,7
29
+ pycoze-0.1.66.dist-info/RECORD,,