analyser_hj3415 4.2.0__tar.gz → 4.2.2__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 (26) hide show
  1. {analyser_hj3415-4.2.0 → analyser_hj3415-4.2.2}/PKG-INFO +1 -1
  2. {analyser_hj3415-4.2.0 → analyser_hj3415-4.2.2}/analyser_hj3415/analyser/tsa/prophet.py +8 -4
  3. {analyser_hj3415-4.2.0 → analyser_hj3415-4.2.2}/pyproject.toml +1 -1
  4. {analyser_hj3415-4.2.0 → analyser_hj3415-4.2.2}/.gitignore +0 -0
  5. {analyser_hj3415-4.2.0 → analyser_hj3415-4.2.2}/README.md +0 -0
  6. {analyser_hj3415-4.2.0 → analyser_hj3415-4.2.2}/analyser_hj3415/__init__.py +0 -0
  7. {analyser_hj3415-4.2.0 → analyser_hj3415-4.2.2}/analyser_hj3415/analyser/__init__.py +0 -0
  8. {analyser_hj3415-4.2.0 → analyser_hj3415-4.2.2}/analyser_hj3415/analyser/eval/__init__.py +0 -0
  9. {analyser_hj3415-4.2.0 → analyser_hj3415-4.2.2}/analyser_hj3415/analyser/eval/blue.py +0 -0
  10. {analyser_hj3415-4.2.0 → analyser_hj3415-4.2.2}/analyser_hj3415/analyser/eval/common.py +0 -0
  11. {analyser_hj3415-4.2.0 → analyser_hj3415-4.2.2}/analyser_hj3415/analyser/eval/growth.py +0 -0
  12. {analyser_hj3415-4.2.0 → analyser_hj3415-4.2.2}/analyser_hj3415/analyser/eval/mil.py +0 -0
  13. {analyser_hj3415-4.2.0 → analyser_hj3415-4.2.2}/analyser_hj3415/analyser/eval/red.py +0 -0
  14. {analyser_hj3415-4.2.0 → analyser_hj3415-4.2.2}/analyser_hj3415/analyser/tsa/__init__.py +0 -0
  15. {analyser_hj3415-4.2.0 → analyser_hj3415-4.2.2}/analyser_hj3415/analyser/tsa/common.py +0 -0
  16. {analyser_hj3415-4.2.0 → analyser_hj3415-4.2.2}/analyser_hj3415/analyser/tsa/lstm.py +0 -0
  17. {analyser_hj3415-4.2.0 → analyser_hj3415-4.2.2}/analyser_hj3415/cli.py +0 -0
  18. {analyser_hj3415-4.2.0 → analyser_hj3415-4.2.2}/archive/deprecated/compile.py +0 -0
  19. {analyser_hj3415-4.2.0 → analyser_hj3415-4.2.2}/archive/deprecated/compile2.py +0 -0
  20. {analyser_hj3415-4.2.0 → analyser_hj3415-4.2.2}/archive/deprecated/lstm.py +0 -0
  21. {analyser_hj3415-4.2.0 → analyser_hj3415-4.2.2}/archive/deprecated/prophet.py +0 -0
  22. {analyser_hj3415-4.2.0 → analyser_hj3415-4.2.2}/archive/deprecated/test_compile.py +0 -0
  23. {analyser_hj3415-4.2.0 → analyser_hj3415-4.2.2}/archive/workroom/mysklearn.py +0 -0
  24. {analyser_hj3415-4.2.0 → analyser_hj3415-4.2.2}/archive/workroom/mysklearn2.py +0 -0
  25. {analyser_hj3415-4.2.0 → analyser_hj3415-4.2.2}/archive/workroom/score.py +0 -0
  26. {analyser_hj3415-4.2.0 → analyser_hj3415-4.2.2}/archive/workroom/trash.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: analyser_hj3415
3
- Version: 4.2.0
3
+ Version: 4.2.2
4
4
  Summary: Stock analyser and database processing programs
5
5
  Requires-Python: >=3.6
6
6
  Description-Content-Type: text/markdown
@@ -231,6 +231,7 @@ class MyProphet:
231
231
 
232
232
  if not self.initialized:
233
233
  self.initializing()
234
+ mylogger.info(f'{self.ticker} _make_prophet_latest_data')
234
235
  try:
235
236
  latest_row = self.df_real.iloc[-1]
236
237
  latest_yhat = \
@@ -394,15 +395,18 @@ class CorpProphet(MyProphet):
394
395
 
395
396
  @staticmethod
396
397
  def ranking(top: Union[int, str] = 'all', refresh=False) -> OrderedDict:
397
- mylogger.info("**** Start prophet ranking ... ****")
398
+ mylogger.debug("**** Start prophet ranking ... ****")
398
399
 
399
400
  data = {}
400
401
  for ticker, latest_data in MyProphet.bulk_get_latest_data(
401
402
  [CorpProphet.code_to_ticker(code) for code in myredis.Corps.list_all_codes()], refresh=refresh).items():
402
403
  code = CorpProphet.ticker_to_code(ticker)
403
- score = latest_data.score
404
- mylogger.debug(f'{code} score : {score}')
405
- data[code] = score
404
+ mylogger.debug(f'{code} latest_data : {latest_data}')
405
+ mylogger.debug(f'{code} score : {latest_data.score}')
406
+ if latest_data.score is None:
407
+ continue
408
+ else:
409
+ data[code] = latest_data.score
406
410
 
407
411
  ranking = OrderedDict(sorted(data.items(), key=lambda x: x[1], reverse=True))
408
412
 
@@ -5,7 +5,7 @@ build-backend = "flit_core.buildapi"
5
5
 
6
6
  [project]
7
7
  name = "analyser_hj3415"
8
- version = "4.2.0"
8
+ version = "4.2.2"
9
9
  description = "Stock analyser and database processing programs"
10
10
  readme = "README.md"
11
11
  requires-python = ">=3.6"