pilot.linkstec 0.0.95__py3-none-any.whl → 0.0.96__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.
@@ -1,3 +1,5 @@
1
+ import os
2
+ import shutil
1
3
  from concurrent.futures import ThreadPoolExecutor
2
4
 
3
5
 
@@ -8,6 +10,8 @@ from pilot.config.config_reader import ConfigReader
8
10
 
9
11
  class BaseController(ControlInterface):
10
12
 
13
+ config_dto = None
14
+
11
15
  def __init__(self):
12
16
  pass
13
17
 
@@ -53,4 +57,29 @@ class BaseController(ControlInterface):
53
57
  future.result()
54
58
  run_step(index + 1)
55
59
 
56
- run_step(0)
60
+ run_step(0)
61
+
62
+ def copy_result_files_to_next_control(self,from_configfile: str,to_configfile: str ):
63
+ from_config_dto = ConfigReader(from_configfile).get_dto()
64
+ to_config_dto = ConfigReader(to_configfile).get_dto()
65
+ from_runsteps = from_config_dto.steps
66
+ to_runsteps = to_config_dto.steps
67
+ from_workspace = from_config_dto.work_space
68
+ to_workspace = to_config_dto.work_space
69
+ from_fold = os.path.join(from_workspace, from_runsteps[-1])
70
+ to_fold = os.path.join(to_workspace, to_runsteps[0])
71
+ if os.path.exists(to_fold):
72
+ shutil.rmtree(to_fold)
73
+ os.makedirs(to_fold)
74
+ shutil.rmtree(to_fold)
75
+ os.makedirs(to_fold, exist_ok=True)
76
+ shutil.copytree(from_fold, to_fold, dirs_exist_ok=True)
77
+ for root, _, files in os.walk(to_fold):
78
+ for fname in files:
79
+ if fname.endswith(('.trg', '.begin', '.end')):
80
+ try:
81
+ os.remove(os.path.join(root, fname))
82
+ except OSError:
83
+ pass
84
+
85
+
@@ -34,8 +34,7 @@ class VertexAISingleton:
34
34
  "model": self.model_name,
35
35
  "messages": [
36
36
  {"role": "user", "content": prompt}
37
- ],
38
- "temperature": 0.7
37
+ ]
39
38
  }
40
39
 
41
40
  resp = self._session.post(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pilot.linkstec
3
- Version: 0.0.95
3
+ Version: 0.0.96
4
4
  Summary: pilot of the ship, a tool for managing and deploying Python projects.
5
5
  Author-email: wanglr <wanglr1980@gmail.com>
6
6
  License-Expression: MIT
@@ -16,7 +16,7 @@ pilot/config/config_reader.py,sha256=MchG-9j-Xfy8AquL_6tlvqQR65MFJ3c3hwWBl6IF2jw
16
16
  pilot/control/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
17
17
  pilot/control/control_interface.py,sha256=zGv380oQgAKPAIHDHeFdPYzhj2Ngo2T66NWlNloA7vY,124
18
18
  pilot/control/impl/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
19
- pilot/control/impl/base_controller.py,sha256=h-A2X4BD_4GGQ0BjCXv_tcO8XdM8_YjXHDIZzvdzyjQ,1634
19
+ pilot/control/impl/base_controller.py,sha256=NBgqmJh8aHf3cJx_UOELKwvwpjhu5PBgsJEJeMk-SYM,2783
20
20
  pilot/conver/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
21
21
  pilot/conver/commentRemover.py,sha256=S8uwp9Glp0bdv4EFqf62WIcOTLiJZdracG2FAMKY1EY,3777
22
22
  pilot/conver/converfileEncodding.py,sha256=HnP-7o6V4YCEq8SA1iryyGUwbnWBkFbL16DxrTq7N-s,1582
@@ -42,7 +42,7 @@ pilot/file_tool/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
42
42
  pilot/file_tool/create_prompt_file.py,sha256=pvmBm_iRWRvm5Qr8gaZwSAzJ_1vrqG9Xi_UJ-NgdwV8,1994
43
43
  pilot/file_tool/json_file_tool.py,sha256=v-qVcyKVhFfwEg4uJWDFMZU0EWvOwkYhrwhm-obMlUU,3637
44
44
  pilot/generater/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
45
- pilot/generater/vertexai.py,sha256=gkf8ToDVGfD2j7JbR1ZtVurM7D7aZ0HLP6Vx7-Vjy7c,3939
45
+ pilot/generater/vertexai.py,sha256=UBVGPGjGb63wPeo8SLpj2X5g_wIHlPVgaewIOaT2ISw,3902
46
46
  pilot/job/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
47
47
  pilot/job/job_interface.py,sha256=EKtuj0IcdolP494aAgTtctgamyQIoFXVwRORwOQck7A,124
48
48
  pilot/job/base/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -74,8 +74,8 @@ pilot/unit/impl/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
74
74
  pilot/unit/impl/base_unit.py,sha256=UV-RsCrSAknO6a2yZAQA0vD8Uo9yqJsNCXC5e8yZE6A,1348
75
75
  pilot/util/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
76
76
  pilot/util/files.py,sha256=v9uzfzo3Aq4xgnUIASEZeBJoA2nD9Qz_EA3P-FwzGFQ,1896
77
- pilot_linkstec-0.0.95.dist-info/licenses/LICENSE,sha256=6kbiFSfobTZ7beWiKnHpN902HgBx-Jzgcme0SvKqhKY,1091
78
- pilot_linkstec-0.0.95.dist-info/METADATA,sha256=oZGxmKBaFeI6-rZmMMs7PGAJ6sCoTN6w6H7QX6x5H4k,679
79
- pilot_linkstec-0.0.95.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
80
- pilot_linkstec-0.0.95.dist-info/top_level.txt,sha256=BijnVJdXnIPxxx3s60M848seL4Z12gNUPod6KPJxK9c,6
81
- pilot_linkstec-0.0.95.dist-info/RECORD,,
77
+ pilot_linkstec-0.0.96.dist-info/licenses/LICENSE,sha256=6kbiFSfobTZ7beWiKnHpN902HgBx-Jzgcme0SvKqhKY,1091
78
+ pilot_linkstec-0.0.96.dist-info/METADATA,sha256=rtwDh3i1x-LrFIvU4EhmZCK33Df7QKPfxgaK71bzO6g,679
79
+ pilot_linkstec-0.0.96.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
80
+ pilot_linkstec-0.0.96.dist-info/top_level.txt,sha256=BijnVJdXnIPxxx3s60M848seL4Z12gNUPod6KPJxK9c,6
81
+ pilot_linkstec-0.0.96.dist-info/RECORD,,