PipeGraphPy 2.0.4__tar.gz → 2.0.5b1__tar.gz

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.
Files changed (158) hide show
  1. pipegraphpy-2.0.5b1/.gitignore +26 -0
  2. pipegraphpy-2.0.5b1/.pypi_token +3 -0
  3. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/MANIFEST.in +0 -0
  4. {pipegraphpy-2.0.4/src/PipeGraphPy.egg-info → pipegraphpy-2.0.5b1}/PKG-INFO +26 -22
  5. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/README.md +2 -2
  6. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/requirements.txt +0 -0
  7. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/setup.cfg +40 -40
  8. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/setup.py +6 -0
  9. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/__init__.py +1 -1
  10. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/common.py +0 -0
  11. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/config/__init__.py +0 -0
  12. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/config/config_light.py +0 -0
  13. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/config/custom.py +0 -0
  14. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/config/default_settings.py +8 -8
  15. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/constants.py +183 -0
  16. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/core/__init__.py +0 -0
  17. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/core/modcls/__init__.py +0 -0
  18. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/core/modules/__init__.py +0 -18
  19. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/core/modules/branchselect/__init__.py +0 -0
  20. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/core/modules/branchselect/sqlbranchselect.py +1 -1
  21. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/core/modules/classifier/__init__.py +0 -0
  22. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/core/modules/cluster/__init__.py +0 -0
  23. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/core/modules/custom/__init__.py +0 -0
  24. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/core/modules/custom/classifier/__init__.py +0 -0
  25. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/core/modules/datacharts/__init__.py +0 -0
  26. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/core/modules/datacharts/dataview.py +0 -0
  27. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/core/modules/deeplearning/__init__.py +0 -0
  28. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/core/modules/ensemble/__init__.py +0 -0
  29. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/core/modules/ensemble/predictcombine.py +0 -0
  30. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/core/modules/evaluate/__init__.py +0 -0
  31. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/core/modules/evaluate/rmseeval.py +2 -2
  32. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/core/modules/exportdata/__init__.py +0 -0
  33. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/core/modules/exportdata/rundownloadcsv.py +0 -0
  34. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/core/modules/exportdata/todb.py +0 -0
  35. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/core/modules/importdata/__init__.py +5 -5
  36. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/core/modules/importdata/algodata.py +0 -0
  37. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/core/modules/importdata/ensemblegridweather.py +2 -2
  38. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/core/modules/importdata/fromdb.py +0 -0
  39. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/core/modules/importdata/fromsql.py +1 -1
  40. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/core/modules/importdata/gridweather.py +2 -2
  41. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/core/modules/importdata/import_graph.py +0 -0
  42. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/core/modules/importdata/midlong.py +0 -0
  43. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/core/modules/importdata/nwpdata.py +0 -0
  44. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/core/modules/importdata/qiaogdfsimport.py +8 -8
  45. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/core/modules/importdata/shan1xiareaimport.py +2 -2
  46. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/core/modules/importdata/strategyalgodata.py +2 -2
  47. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/core/modules/importdata/test.py +0 -0
  48. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/core/modules/importdata/theorydata.py +2 -2
  49. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/core/modules/importdata/thirdpower.py +0 -0
  50. pipegraphpy-2.0.5b1/src/PipeGraphPy/core/modules/importdata/token.npy +0 -0
  51. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/core/modules/importdata/totalpower.py +2 -2
  52. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/core/modules/importdata/totalpower_utils.py +0 -0
  53. pipegraphpy-2.0.5b1/src/PipeGraphPy/core/modules/merge/mergemany.py +97 -0
  54. pipegraphpy-2.0.5b1/src/PipeGraphPy/core/modules/merge/mergetwo.py +83 -0
  55. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/core/modules/model_selector/MLP_test_Selector.py +0 -0
  56. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/core/modules/model_selector/__init__.py +0 -0
  57. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/core/modules/postprocessor/__init__.py +0 -0
  58. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/core/modules/postprocessor/postdownloadcsv.py +0 -0
  59. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/core/modules/postprocessor/test.py +0 -0
  60. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/core/modules/postprocessor/testss.py +0 -0
  61. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/core/modules/postprocessor/zerotocap.py +1 -1
  62. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/core/modules/preprocessor/__init__.py +0 -0
  63. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/core/modules/preprocessor/filtercolumns.py +0 -0
  64. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/core/modules/preprocessor/filterlib.py +0 -0
  65. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/core/modules/preprocessor/predownloadcsv.py +0 -0
  66. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/core/modules/preprocessor/sqlfilter.py +1 -1
  67. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/core/modules/pythonscript/__init__.py +0 -0
  68. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/core/modules/pythonscript/copycompetitionpredictresulttest.py +18 -18
  69. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/core/modules/pythonscript/reportmengDongenergytest.py +2 -2
  70. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/core/modules/regressor/__init__.py +0 -0
  71. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/core/modules/selector/__init__.py +0 -0
  72. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/core/modules/selector/explore_selector.py +0 -0
  73. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/core/modules/selector/nwp_selector.py +0 -0
  74. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/core/modules/special/__init__.py +0 -0
  75. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/core/modules/special/emptydata.py +0 -0
  76. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/core/modules/special/graphmod.py +2 -2
  77. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/core/modules/transformer/MLP_test_Transformer.py +0 -0
  78. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/core/modules/transformer/__init__.py +0 -0
  79. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/core/modules/transformer/rnn_transformer.py +0 -0
  80. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/db/__init__.py +0 -0
  81. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/db/utils.py +16 -9
  82. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/decorators.py +0 -0
  83. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/exceptions.py +0 -0
  84. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/logger.py +2 -1
  85. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/plot/__init__.py +0 -0
  86. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/plot/draw.py +0 -0
  87. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/storage/__init__.py +0 -0
  88. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/storage/base.py +0 -0
  89. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/storage/dict_backend.py +2 -1
  90. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/storage/file_backend.py +33 -31
  91. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/storage/redis_backend.py +3 -3
  92. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/tools.py +22 -17
  93. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/utils/__init__.py +0 -0
  94. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/utils/celery_control.py +0 -0
  95. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/utils/check.py +3 -3
  96. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/utils/core.py +0 -0
  97. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/utils/examine.py +0 -0
  98. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/utils/feature_select.py +0 -0
  99. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/utils/file_operate.py +0 -0
  100. pipegraphpy-2.0.5b1/src/PipeGraphPy/utils/format.py +303 -0
  101. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/utils/formula.py +0 -0
  102. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/utils/functional.py +0 -0
  103. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/utils/handle_graph.py +0 -0
  104. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/utils/lock.py +0 -0
  105. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/utils/mq.py +3 -3
  106. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/utils/osutil.py +0 -0
  107. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/utils/read_nwp_tar.py +0 -0
  108. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/utils/redis_operate.py +0 -0
  109. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/utils/str_handle.py +0 -0
  110. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy/utils/version.py +0 -0
  111. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1/src/PipeGraphPy.egg-info}/PKG-INFO +26 -22
  112. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy.egg-info/SOURCES.txt +8 -39
  113. pipegraphpy-2.0.5b1/src/build.sh +2 -0
  114. pipegraphpy-2.0.5b1/src/build_setup_arm.py +85 -0
  115. pipegraphpy-2.0.5b1/src/build_setup_x86.py +85 -0
  116. pipegraphpy-2.0.4/src/PipeGraphPy/core/anchor.cpython-38-x86_64-linux-gnu.so +0 -0
  117. pipegraphpy-2.0.4/src/PipeGraphPy/core/edge.cpython-38-x86_64-linux-gnu.so +0 -0
  118. pipegraphpy-2.0.4/src/PipeGraphPy/core/graph.cpython-38-x86_64-linux-gnu.so +0 -0
  119. pipegraphpy-2.0.4/src/PipeGraphPy/core/graph_base.cpython-38-x86_64-linux-gnu.so +0 -0
  120. pipegraphpy-2.0.4/src/PipeGraphPy/core/modcls/base.cpython-38-x86_64-linux-gnu.so +0 -0
  121. pipegraphpy-2.0.4/src/PipeGraphPy/core/modcls/branchselect.cpython-38-x86_64-linux-gnu.so +0 -0
  122. pipegraphpy-2.0.4/src/PipeGraphPy/core/modcls/classifier.cpython-38-x86_64-linux-gnu.so +0 -0
  123. pipegraphpy-2.0.4/src/PipeGraphPy/core/modcls/cluster.cpython-38-x86_64-linux-gnu.so +0 -0
  124. pipegraphpy-2.0.4/src/PipeGraphPy/core/modcls/datacharts.cpython-38-x86_64-linux-gnu.so +0 -0
  125. pipegraphpy-2.0.4/src/PipeGraphPy/core/modcls/deeplearning.cpython-38-x86_64-linux-gnu.so +0 -0
  126. pipegraphpy-2.0.4/src/PipeGraphPy/core/modcls/endscript.cpython-38-x86_64-linux-gnu.so +0 -0
  127. pipegraphpy-2.0.4/src/PipeGraphPy/core/modcls/ensemble.cpython-38-x86_64-linux-gnu.so +0 -0
  128. pipegraphpy-2.0.4/src/PipeGraphPy/core/modcls/evaluate.cpython-38-x86_64-linux-gnu.so +0 -0
  129. pipegraphpy-2.0.4/src/PipeGraphPy/core/modcls/exportdata.cpython-38-x86_64-linux-gnu.so +0 -0
  130. pipegraphpy-2.0.4/src/PipeGraphPy/core/modcls/handlescript.cpython-38-x86_64-linux-gnu.so +0 -0
  131. pipegraphpy-2.0.4/src/PipeGraphPy/core/modcls/importdata.cpython-38-x86_64-linux-gnu.so +0 -0
  132. pipegraphpy-2.0.4/src/PipeGraphPy/core/modcls/merge.cpython-38-x86_64-linux-gnu.so +0 -0
  133. pipegraphpy-2.0.4/src/PipeGraphPy/core/modcls/mergescript.cpython-38-x86_64-linux-gnu.so +0 -0
  134. pipegraphpy-2.0.4/src/PipeGraphPy/core/modcls/metrics.cpython-38-x86_64-linux-gnu.so +0 -0
  135. pipegraphpy-2.0.4/src/PipeGraphPy/core/modcls/postprocessor.cpython-38-x86_64-linux-gnu.so +0 -0
  136. pipegraphpy-2.0.4/src/PipeGraphPy/core/modcls/preprocessor.cpython-38-x86_64-linux-gnu.so +0 -0
  137. pipegraphpy-2.0.4/src/PipeGraphPy/core/modcls/pythonscript.cpython-38-x86_64-linux-gnu.so +0 -0
  138. pipegraphpy-2.0.4/src/PipeGraphPy/core/modcls/regressor.cpython-38-x86_64-linux-gnu.so +0 -0
  139. pipegraphpy-2.0.4/src/PipeGraphPy/core/modcls/selector.cpython-38-x86_64-linux-gnu.so +0 -0
  140. pipegraphpy-2.0.4/src/PipeGraphPy/core/modcls/selectscript.cpython-38-x86_64-linux-gnu.so +0 -0
  141. pipegraphpy-2.0.4/src/PipeGraphPy/core/modcls/special.cpython-38-x86_64-linux-gnu.so +0 -0
  142. pipegraphpy-2.0.4/src/PipeGraphPy/core/modcls/split.cpython-38-x86_64-linux-gnu.so +0 -0
  143. pipegraphpy-2.0.4/src/PipeGraphPy/core/modcls/splitscript.cpython-38-x86_64-linux-gnu.so +0 -0
  144. pipegraphpy-2.0.4/src/PipeGraphPy/core/modcls/startscript.cpython-38-x86_64-linux-gnu.so +0 -0
  145. pipegraphpy-2.0.4/src/PipeGraphPy/core/modcls/transformer.cpython-38-x86_64-linux-gnu.so +0 -0
  146. pipegraphpy-2.0.4/src/PipeGraphPy/core/module.cpython-38-x86_64-linux-gnu.so +0 -0
  147. pipegraphpy-2.0.4/src/PipeGraphPy/core/node.cpython-38-x86_64-linux-gnu.so +0 -0
  148. pipegraphpy-2.0.4/src/PipeGraphPy/core/pipegraph.cpython-38-x86_64-linux-gnu.so +0 -0
  149. pipegraphpy-2.0.4/src/PipeGraphPy/db/models.cpython-38-x86_64-linux-gnu.so +0 -0
  150. pipegraphpy-2.0.4/src/PipeGraphPy/handle_wait_graph.py +0 -318
  151. pipegraphpy-2.0.4/src/PipeGraphPy/shell_op.py +0 -144
  152. pipegraphpy-2.0.4/src/PipeGraphPy/utils/format.py +0 -125
  153. pipegraphpy-2.0.4/src/PipeGraphPy/worker_exe.py +0 -64
  154. pipegraphpy-2.0.4/src/PipeGraphPy/worker_heartbeat.py +0 -150
  155. pipegraphpy-2.0.4/src/PipeGraphPy/worker_subscriber.py +0 -117
  156. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy.egg-info/dependency_links.txt +0 -0
  157. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy.egg-info/requires.txt +0 -0
  158. {pipegraphpy-2.0.4 → pipegraphpy-2.0.5b1}/src/PipeGraphPy.egg-info/top_level.txt +0 -0
@@ -0,0 +1,26 @@
1
+ *.pyc
2
+ #*.txt
3
+ # *.csv
4
+ imlf/json_files/*
5
+ checkpoint
6
+ mymodel.tflearn.*
7
+ *.egg-info
8
+ dist
9
+ *.log
10
+ .vscode/*
11
+ .cache
12
+ build/*
13
+ json_files/*
14
+ algo_data/*
15
+ .pytest_cache/
16
+ .scannerwork/
17
+ sonar-report/
18
+ .coverage
19
+ __pycache__/
20
+ structured_data_regressor/
21
+ model_files/*
22
+ logs/*
23
+ *.pid
24
+ demo/*
25
+ tests/*
26
+ competition/*
@@ -0,0 +1,3 @@
1
+ UploadAllProj
2
+ pypi-AgEIcHlwaS5vcmcCJGE0MDhjYWE4LWRmNmQtNGYzMC1iMGI5LThlMTY4OWRjNDRhZQACKlszLCJlNTlhODZmMi1hMmUwLTRmM2QtOTEzMS0wNzUzMmUyOTZiY2QiXQAABiD3Wap-15uU01YIt5_XMMn2v_8bwojhghDi1Q446SDqwg
3
+
File without changes
@@ -1,22 +1,26 @@
1
- Metadata-Version: 2.1
2
- Name: PipeGraphPy
3
- Version: 2.0.4
4
- Summary: 核心算法框架
5
- Home-page: https://gitee.com/zsq_tee/pipe-graph-py
6
- Author: liujm
7
- Author-email: 792079829@qq.com
8
- License: Private
9
- Project-URL: Documentation, https://gitee.com/zsq_tee/pipe-graph-py
10
- Project-URL: Source, https://gitee.com/zsq_tee/pipe-graph-py
11
- Requires-Python: >=3.6
12
- Requires-Dist: openpyxl
13
- Requires-Dist: pandas
14
- Requires-Dist: python-dateutil
15
- Requires-Dist: PyYAML
16
- Requires-Dist: tqdm
17
- Requires-Dist: numpy
18
- Requires-Dist: matplotlib
19
- Requires-Dist: pandasql
20
- Requires-Dist: dnspython
21
- Requires-Dist: prettytable
22
- Requires-Dist: dbpoolpy
1
+ Metadata-Version: 2.1
2
+ Name: PipeGraphPy
3
+ Version: 2.0.5b1
4
+ Summary: 核心算法框架
5
+ Home-page: https://gitee.com/zsq_tee/pipe-graph-py
6
+ Author: liujm
7
+ Author-email: 792079829@qq.com
8
+ License: Private
9
+ Project-URL: Documentation, https://gitee.com/zsq_tee/pipe-graph-py
10
+ Project-URL: Source, https://gitee.com/zsq_tee/pipe-graph-py
11
+ Classifier: Programming Language :: Python :: 3.6
12
+ Classifier: Operating System :: POSIX :: Linux
13
+ Classifier: Operating System :: Microsoft :: Windows
14
+ Classifier: Operating System :: MacOS
15
+ Requires-Python: >=3.6
16
+ Requires-Dist: openpyxl
17
+ Requires-Dist: pandas
18
+ Requires-Dist: python-dateutil
19
+ Requires-Dist: PyYAML
20
+ Requires-Dist: tqdm
21
+ Requires-Dist: numpy
22
+ Requires-Dist: matplotlib
23
+ Requires-Dist: pandasql
24
+ Requires-Dist: dnspython
25
+ Requires-Dist: prettytable
26
+ Requires-Dist: dbpoolpy
@@ -87,7 +87,7 @@ class ImportExample():
87
87
 
88
88
  def __init__(self, **kw):
89
89
  self.params = kw
90
- self.farm_info = kw.get("objects_info", {})
90
+ self.farm_info = kw.get("object_info", {})
91
91
 
92
92
  def run(self):
93
93
  df = pd.DataFrame(
@@ -371,7 +371,7 @@ class SqlFilter():
371
371
  __version__ = '0.0.2'
372
372
  def __init__(self, **kw):
373
373
  self.params = kw
374
- self.farm_info = kw.get('objects_info')
374
+ self.farm_info = kw.get('object_info')
375
375
 
376
376
  def _sqlfilter(self, sql, X, y=None):
377
377
  X, y = X, pd.DataFrame() if y is None else y
@@ -1,40 +1,40 @@
1
- [metadata]
2
- name = PipeGraphPy
3
- version = attr: PipeGraphPy.__version__
4
- author = liujm
5
- author_email = 792079829@qq.com
6
- url = https://gitee.com/zsq_tee/pipe-graph-py
7
- description = A Python library of core algorithms for weather group forecasting
8
- long_description = file: README.rst
9
- license = MIT
10
- project_urls =
11
- Documentation = https://gitee.com/zsq_tee/pipe-graph-py
12
- Source = https://gitee.com/zsq_tee/pipe-graph-py
13
-
14
- [options]
15
- packages = find:
16
- package_dir = = src
17
- include_package_data = true
18
- python_requires = >= 3.6
19
-
20
- [options.packages.find]
21
- where = src
22
-
23
- [options.entry_points]
24
-
25
- [flake8]
26
- select = B, E, F, W, B9, ISC
27
- ignore =
28
- E203
29
- E402
30
- E501
31
- E722
32
- W503
33
- max-line-length = 80
34
- per-file-ignores =
35
- src/flask/__init__.py: F401
36
-
37
- [egg_info]
38
- tag_build =
39
- tag_date = 0
40
-
1
+ [metadata]
2
+ name = PipeGraphPy
3
+ version = attr: PipeGraphPy.__version__
4
+ author = liujm
5
+ author_email = 792079829@qq.com
6
+ url = https://gitee.com/zsq_tee/pipe-graph-py
7
+ description = A Python library of core algorithms for weather group forecasting
8
+ long_description = file: README.rst
9
+ license = MIT
10
+ project_urls =
11
+ Documentation = https://gitee.com/zsq_tee/pipe-graph-py
12
+ Source = https://gitee.com/zsq_tee/pipe-graph-py
13
+
14
+ [options]
15
+ packages = find:
16
+ package_dir = = src
17
+ include_package_data = true
18
+ python_requires = >= 3.6
19
+
20
+ [options.packages.find]
21
+ where = src
22
+
23
+ [options.entry_points]
24
+
25
+ [flake8]
26
+ select = B, E, F, W, B9, ISC
27
+ ignore =
28
+ E203
29
+ E402
30
+ E501
31
+ E722
32
+ W503
33
+ max-line-length = 80
34
+ per-file-ignores =
35
+ src/flask/__init__.py: F401
36
+
37
+ [egg_info]
38
+ tag_build =
39
+ tag_date = 0
40
+
@@ -19,4 +19,10 @@ setup(
19
19
  license="Private",
20
20
  include_package_data=True,
21
21
  install_requires=get_requirements(),
22
+ classifiers=[
23
+ 'Programming Language :: Python :: 3.6',
24
+ 'Operating System :: POSIX :: Linux',
25
+ 'Operating System :: Microsoft :: Windows',
26
+ 'Operating System :: MacOS',
27
+ ],
22
28
  )
@@ -1,6 +1,6 @@
1
1
  # coding:utf-8
2
2
 
3
- __version__ = "2.0.4"
3
+ __version__ = "2.0.5b1"
4
4
 
5
5
  from PipeGraphPy.core.graph import Graph, graph_predict, graph_evaluate, online_graph_evaluate, online_graph_predict, graph_run, graph_backtest
6
6
  from PipeGraphPy.core.module import Module
@@ -30,7 +30,7 @@ BACKTEST_RESULT_SAVE_PATH = os.environ.get("PGP_BACKTEST_RESULT_SAVE_PATH", '')
30
30
  RUN_RESULT_SAVE_PATH = os.environ.get("PGP_RUN_RESULT_SAVE_PATH", '')
31
31
  EVALUATE_RESULT_SAVE_PATH = os.environ.get("PGP_EVALUATE_RESULT_SAVE_PATH", '')
32
32
  TEMP_SAVE_PATH = os.environ.get("PGP_TEMP_SAVE_PATH", "")
33
- CUSTOM_CACHE_PATH = os.environ.get("PGP_CUSTOM_CACHE_PATH", '')
33
+ MODULES_CACHE_PATH = os.environ.get("PGP_MODULES_CACHE_PATH", '')
34
34
  REDIS_HOST = os.environ.get("REDIS_HOST", '39.105.185.60')
35
35
  REDIS_PORT = int(os.environ.get("REDIS_PORT", '6371'))
36
36
  PGP_DB_HOST = os.environ.get("PGP_DB_HOST", '39.105.185.60')
@@ -68,15 +68,15 @@ if not EVALUATE_RESULT_SAVE_PATH:
68
68
  EVALUATE_RESULT_SAVE_PATH = os.path.join(HOME_CACHE_PATH, "evaluate_result")
69
69
  if not TEMP_SAVE_PATH:
70
70
  TEMP_SAVE_PATH = os.path.join(HOME_CACHE_PATH, "temp")
71
- if not CUSTOM_CACHE_PATH:
72
- CUSTOM_CACHE_PATH = os.path.join(HOME_CACHE_PATH, "custom")
73
- if not os.path.exists(CUSTOM_CACHE_PATH):
74
- os.makedirs(CUSTOM_CACHE_PATH)
75
- _init_file = os.path.join(CUSTOM_CACHE_PATH, "__init__.py")
71
+ if not MODULES_CACHE_PATH:
72
+ MODULES_CACHE_PATH = os.path.join(HOME_CACHE_PATH, "modules")
73
+ if not os.path.exists(MODULES_CACHE_PATH):
74
+ os.makedirs(MODULES_CACHE_PATH)
75
+ _init_file = os.path.join(MODULES_CACHE_PATH, "__init__.py")
76
76
  with open(_init_file, "w") as f:
77
77
  f.write("#")
78
- sys.path.append(os.path.dirname(CUSTOM_CACHE_PATH))
79
- MODEL_SAVE_NAME = "graph_model_{graph_id}"
78
+ sys.path.append(os.path.dirname(MODULES_CACHE_PATH))
79
+ MODEL_SAVE_NAME = "graph_model_{graph_id}_{object_id}"
80
80
  ALGO_MODEL_SAVE_NAME = "algo_model_{graph_id}_{node_id}_{algo_mod_type}_{idx}"
81
81
 
82
82
  # 运行模式 1: 包引用 2:grpc
@@ -236,3 +236,186 @@ class ONLINE_ENV(ENUMSBASE):
236
236
 
237
237
  NODE_DATA_RESERVE = 20
238
238
  NOT_CUT_MODULES = []
239
+
240
+
241
+ GRAPH_DICT_FORMAT = {
242
+ "id": {
243
+ "required": True,
244
+ "type": str,
245
+ "dest": "",
246
+ "help": "必传,不能包含中文",
247
+ },
248
+ "name": {
249
+ "required": False,
250
+ "type": str,
251
+ "dest": "",
252
+ "help": "非必传,不传参时,使用id的值",
253
+ "fillnone": "id",
254
+ },
255
+ "version": {
256
+ "required": False,
257
+ "default": "v0.0.1",
258
+ "type": str,
259
+ "dest": "",
260
+ "help": "非必传, 版本号",
261
+ },
262
+ "author": {
263
+ "required": False,
264
+ "default": "",
265
+ "type": str,
266
+ "dest": "username",
267
+ "help": "非必传,作者",
268
+ },
269
+ "update_time": {
270
+ "required": False,
271
+ "type": str,
272
+ "dest": "utime",
273
+ "help": "非必传,更新时间",
274
+ },
275
+ "params": {
276
+ "required": False,
277
+ "default": {},
278
+ "type": dict,
279
+ "dest": "run_params",
280
+ "help": "非必传,模型全局传参",
281
+ },
282
+ "nodes":{
283
+ "required": True,
284
+ "type": list,
285
+ "dest": "",
286
+ "help": "模型节点列表",
287
+ "elements": {
288
+ "required": True,
289
+ "type": dict,
290
+ "elements": {
291
+ "id": {
292
+ "required": True,
293
+ "type": str,
294
+ "dest": "",
295
+ "help": "必传,不能包含中文",
296
+ },
297
+ "name": {
298
+ "required": False,
299
+ "type": str,
300
+ "dest": "",
301
+ "help": "非必传,不传参时,使用id的值",
302
+ "fillnone": "id",
303
+ },
304
+ "module_classification": {
305
+ "required": True,
306
+ "type": str,
307
+ # "dest": "parent_cls_name",
308
+ "help": "必传,多级时用‘/’分割",
309
+ },
310
+ "module_cls_name": {
311
+ "required": True,
312
+ "type": str,
313
+ # "dest": "cls_name",
314
+ "help": "必传,节点入口类的类名, 文件名为类名的小写",
315
+ },
316
+ "params": {
317
+ "required": False,
318
+ "default": {},
319
+ "type": dict,
320
+ "help": "必传,节点传参",
321
+ }
322
+ }
323
+ }
324
+ },
325
+ "edges":{
326
+ "required": False,
327
+ "default": [],
328
+ "type": list,
329
+ "dest": "",
330
+ "help": "模型连线列表",
331
+ "elements": {
332
+ "required": True,
333
+ "type": dict,
334
+ "elements": {
335
+ "source": {
336
+ "required": True,
337
+ "type": str,
338
+ "dest": "source_id",
339
+ "alias": "source_id",
340
+ "help": "必传,起始节点id, 必须在nodes能找到对应id",
341
+ },
342
+ "target": {
343
+ "required": True,
344
+ "type": str,
345
+ "dest": "target_id",
346
+ "alias": "target_id",
347
+ "help": "必传,目标节点id, 必须在nodes能找到对应id",
348
+ },
349
+ "source_anchor": {
350
+ "required": False,
351
+ "default": 1,
352
+ "type": str,
353
+ "dest": "",
354
+ "help": "必传,起始节点锚点,默认是1",
355
+ },
356
+ "target_anchor": {
357
+ "required": False,
358
+ "default": 1,
359
+ "type": str,
360
+ "dest": "",
361
+ "help": "必传,目标节点锚点,默认是1",
362
+ }
363
+ }
364
+ }
365
+ },
366
+ "objects":{
367
+ "required": True,
368
+ "dest": "object_infos",
369
+ "type": list,
370
+ "help": "模型对象信息",
371
+ "elements": {
372
+ "required": True,
373
+ "type": dict,
374
+ "elements": {
375
+ "id": {
376
+ "required": True,
377
+ "type": str,
378
+ "dest": "",
379
+ "help": "必传,不能包含中文",
380
+ },
381
+ "name": {
382
+ "required": False,
383
+ "type": str,
384
+ "dest": "",
385
+ "help": "非必传,不传参时,使用id的值",
386
+ "fillnone": "id",
387
+ }
388
+ }
389
+ }
390
+ }
391
+ }
392
+
393
+
394
+ EXECUTOR_DICT_FORMAT = {
395
+ "executor":{
396
+ "required": False, # 没有执行器的时候模型安顺序执行
397
+ "default": [],
398
+ "type": list,
399
+ "help": "执行器,标识模型执行顺序",
400
+ "elements": {
401
+ "required": True,
402
+ "type": dict,
403
+ "elements": {
404
+ "source": {
405
+ "required": True,
406
+ "type": str,
407
+ "dest": "source_graph_id",
408
+ "alias": "source_id",
409
+ "help": "必传,起始模型id",
410
+ },
411
+ "target": {
412
+ "required": True,
413
+ "type": str,
414
+ "dest": "target_graph_id",
415
+ "alias": "target_id",
416
+ "help": "必传,目标模型id",
417
+ }
418
+ }
419
+ }
420
+ }
421
+ }
@@ -4,7 +4,6 @@
4
4
  from datetime import datetime, timedelta
5
5
  from PipeGraphPy.utils.str_handle import filter_fields
6
6
  from PipeGraphPy.utils.handle_graph import stop_running_with_exception
7
- from PipeGraphPy.logger import plog, rlog, log
8
7
 
9
8
 
10
9
  class Base(object):
@@ -21,23 +20,6 @@ class MBase(object):
21
20
  """停止运行"""
22
21
  stop_running_with_exception(self.params.graph_info["id"], err=err)
23
22
 
24
- def log(self, l_type=None, level="info", msg=None):
25
- """打印日志"""
26
- if l_type == "r":
27
- glog = rlog
28
- elif l_type == "p":
29
- glog = plog
30
- else:
31
- glog = log
32
- func = getattr(glog, level)
33
- func(
34
- "%s %s: %s" % ((datetime.utcnow()+timedelta(hours=8)), self.__class__.__name__, msg),
35
- graph_id=self.params.graph_info["id"],
36
- plog_record_id=self.params.get("plog_record_id", 0),
37
- source=str(self.params.get("source")),
38
- clock=str(self.params.get("clock")),
39
- )
40
-
41
23
  def get_X_y(self, df):
42
24
  """获取X和y值从df中"""
43
25
  if self.params.get("feature_columns"):
@@ -8,7 +8,7 @@
8
8
  """
9
9
 
10
10
  import pandas as pd
11
- from custom.preprocessor.sqlfilter import SqlFilter
11
+ from modules.preprocessor.sqlfilter import SqlFilter
12
12
 
13
13
 
14
14
  class SqlBranchSelect():
@@ -40,7 +40,7 @@ class TotalEvaluateData():
40
40
  nwp_config[k] = list(set(nwp_config[k]) | set(v))
41
41
  feature = list(set(feature) | set(n.params["feature"]))
42
42
  check_result = list(set(check_result) | set(n.params.get("check_result")))
43
- graph = Graph.create(wfid=self.evaluate_graph_info['objects_id'])
43
+ graph = Graph.create(wfid=self.evaluate_graph_info['object_id'])
44
44
  algo_data_node = Node.create(Module.use("Algodata"), graph)
45
45
  algo_data_node.params = {
46
46
  "out_col": out_col,
@@ -242,7 +242,7 @@ class RmseEval():
242
242
  }
243
243
  def __init__(self, **kw):
244
244
  self.params = kw
245
- self.farm_info = self.params.get('objects_info', {})
245
+ self.farm_info = self.params.get('object_info', {})
246
246
  self.graph_info = self.params.get('graph_info', {})
247
247
  self.powercap = self.farm_info.get('powercap', POWERCAP)
248
248
  self.theory_score = 50
@@ -7,7 +7,7 @@ import re
7
7
  from PipeGraphPy.constants import FARMTYPE
8
8
  # from algo_data.utils import inp_heights
9
9
  # import algo_data
10
- from PipeGraphPy.logger import plog
10
+ from PipeGraphPy.logger import log
11
11
  from collections import namedtuple
12
12
  from PipeGraphPy.config import settings
13
13
  from datetime import datetime, timedelta
@@ -124,8 +124,8 @@ class AlgodataBase(InputDataBase):
124
124
  InputDataBase.__init__(self, **kw)
125
125
  self.params = kw
126
126
  self.graph_info = kw.get("graph_info")
127
- self.wfid = self.graph_info["objects_id"]
128
- self.farm_info = kw.get("objects_info")
127
+ self.wfid = self.graph_info["object_id"]
128
+ self.farm_info = kw.get("object_info")
129
129
  default_feature = (
130
130
  "ghi_sfc"
131
131
  if self.farm_info["f_type"] == FARMTYPE.PV
@@ -399,7 +399,7 @@ class AlgodataBase(InputDataBase):
399
399
  # weather_data = weather_data.sort_index(axis=1)
400
400
  # return weather_data
401
401
  # except Exception as e:
402
- # plog.info(e)
402
+ # log.info(e)
403
403
  # if is_except:
404
404
  # raise e
405
405
  # else:
@@ -642,7 +642,7 @@ class AlgodataBase(InputDataBase):
642
642
  # weather_df = weather_df.sort_index(axis=1)
643
643
  # return weather_df
644
644
  # except Exception as e:
645
- # plog.info(e)
645
+ # log.info(e)
646
646
  # if is_except:
647
647
  # raise e
648
648
  # else:
@@ -190,8 +190,8 @@ class EnsembleGridWeather(InputDataBase):
190
190
  def __init__(self, **kw):
191
191
  InputDataBase.__init__(self, **kw)
192
192
  graph_info = kw["graph_info"]
193
- self.wfid = graph_info["objects_id"]
194
- self.farm_info = self.params["objects_info"]
193
+ self.wfid = graph_info["object_id"]
194
+ self.farm_info = self.params["object_info"]
195
195
 
196
196
  def _get_obs_data(self, start_dt, end_dt, columns=["r_apower"]):
197
197
  """调用algo_data接口,获取数据库obs_data实测数据"""
@@ -25,7 +25,7 @@ class FromSQL(InputDataBase):
25
25
  "type": "string",
26
26
  "plugin": "text",
27
27
  "need": True,
28
- "value": "select * from PipeGraphPy.custom where mod_id=20",
28
+ "value": "select * from PipeGraphPy.modules where mod_id=20",
29
29
  "desc": ""
30
30
  }, {
31
31
  "key": "index",
@@ -207,8 +207,8 @@ class GridWeather(InputDataBase):
207
207
  def __init__(self, **kw):
208
208
  InputDataBase.__init__(self, **kw)
209
209
  graph_info = kw["graph_info"]
210
- self.wfid = graph_info["objects_id"]
211
- self.farm_info = self.params["objects_info"]
210
+ self.wfid = graph_info["object_id"]
211
+ self.farm_info = self.params["object_info"]
212
212
 
213
213
  def _get_obs_data(self, start_dt, end_dt, columns=["r_apower"]):
214
214
  """调用algo_data接口,获取数据库obs_data实测数据"""