siat 3.9.20__py3-none-any.whl → 3.9.21__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.
siat/grafix.py CHANGED
@@ -331,7 +331,11 @@ def plot_line(df0,colname,collabel,ylabeltxt,titletxt,footnote,datatag=False, \
331
331
  atpd=at
332
332
 
333
333
  if DEBUG: print(f"atpd={atpd}")
334
- at_str=atpd.strftime('%Y-%m-%d')
334
+
335
+ try:
336
+ at_str=atpd.strftime('%Y-%m-%d')
337
+ except:
338
+ at_str=atpd
335
339
  #plt.axvline(x=atpd,ls=":",c=color,linewidth=1.5,label=text_lang("关注点","Attention point ")+str(at))
336
340
  plt.axvline(x=atpd,ls=":",c=color,linewidth=1.5,label=text_lang("关注点","Attention point ")+at_str)
337
341
 
@@ -724,8 +728,11 @@ def plot_line2_coaxial(df01,ticker1,colname1,label1, \
724
728
 
725
729
  if DEBUG:
726
730
  print("atpd=",atpd)
727
-
728
- at_str=atpd.strftime('%Y-%m-%d')
731
+
732
+ try:
733
+ at_str=atpd.strftime('%Y-%m-%d')
734
+ except:
735
+ at_str=atpd
729
736
  plt.axvline(x=atpd,ls=":",c=color,linewidth=1.5,label=text_lang("关注点","Attention point ")+at_str)
730
737
 
731
738
  if not attention_point_area=='':
@@ -995,8 +1002,11 @@ def plot_line2_coaxial2(df01,ticker1,colname1,label1, \
995
1002
 
996
1003
  if DEBUG:
997
1004
  print("atpd=",atpd)
998
-
999
- at_str=atpd.strftime('%Y-%m-%d')
1005
+
1006
+ try:
1007
+ at_str=atpd.strftime('%Y-%m-%d')
1008
+ except:
1009
+ at_str=atpd
1000
1010
  #plt.axvline(x=atpd,ls=":",c=color,linewidth=1.5,label=text_lang("关注点","Attention point ")+str(at))
1001
1011
  plt.axvline(x=atpd,ls=":",c=color,linewidth=1.5,label=text_lang("关注点","Attention point ")+at_str)
1002
1012
 
@@ -1212,8 +1222,11 @@ def plot_line2_twinx(df01,ticker1,colname1,label1, \
1212
1222
  atpd=pd.to_datetime(at)
1213
1223
  except:
1214
1224
  atpd=at
1215
-
1216
- at_str=atpd.strftime('%Y-%m-%d')
1225
+
1226
+ try:
1227
+ at_str=atpd.strftime('%Y-%m-%d')
1228
+ except:
1229
+ at_str=atpd
1217
1230
  plt.axvline(x=atpd,ls=":",c=color,linewidth=1.5,label=text_lang("关注点","Attention point ")+at_str)
1218
1231
 
1219
1232
  if not attention_point_area=='':
@@ -1463,7 +1476,10 @@ def plot_line2_LR(df01,ticker1,colname1,label1, \
1463
1476
  except:
1464
1477
  atpd=at
1465
1478
 
1466
- at_str=atpd.strftime('%Y-%m-%d')
1479
+ try:
1480
+ at_str=atpd.strftime('%Y-%m-%d')
1481
+ except:
1482
+ at_str=atpd
1467
1483
  #ax.axvline(x=atpd,ls=":",c=color,linewidth=1.5,label=text_lang("关注点","Attention point ")+str(at))
1468
1484
  ax.axvline(x=atpd,ls=":",c=color,linewidth=1.5,label=text_lang("关注点","Attention point ")+at_str)
1469
1485
 
@@ -1709,7 +1725,10 @@ def plot_line2_UD(df01,ticker1,colname1,label1, \
1709
1725
  except:
1710
1726
  atpd=at
1711
1727
 
1712
- at_str=atpd.strftime('%Y-%m-%d')
1728
+ try:
1729
+ at_str=atpd.strftime('%Y-%m-%d')
1730
+ except:
1731
+ at_str=atpd
1713
1732
  #ax.axvline(x=atpd,ls=":",c=color,linewidth=1.5,label=text_lang("关注点","Attention point ")+str(at))
1714
1733
  ax.axvline(x=atpd,ls=":",c=color,linewidth=1.5,label=text_lang("关注点","Attention point ")+at_str)
1715
1734
 
@@ -1952,7 +1971,10 @@ def plot_line2_twinx2(df01,ticker1,colname1,label1, \
1952
1971
  except:
1953
1972
  atpd=at
1954
1973
 
1955
- at_str=atpd.strftime('%Y-%m-%d')
1974
+ try:
1975
+ at_str=atpd.strftime('%Y-%m-%d')
1976
+ except:
1977
+ at_str=atpd
1956
1978
  #plt.axvline(x=atpd,ls=":",c=color,linewidth=1.5,label=text_lang("关注点","Attention point ")+str(at))
1957
1979
  plt.axvline(x=atpd,ls=":",c=color,linewidth=1.5,label=text_lang("关注点","Attention point ")+at_str)
1958
1980
 
@@ -2422,7 +2444,11 @@ def draw_lines(df0,y_label,x_label,axhline_value,axhline_label,title_txt, \
2422
2444
  plt.arrow(atpd,yaxis_min,arrow_dx,arrow_dy,ls=':',lw=2,fc=color,ec=color,alpha=0.5,shape='full', \
2423
2445
  width=0.05,length_includes_head=True)
2424
2446
  """
2425
- at_str=atpd.strftime('%Y-%m-%d')
2447
+
2448
+ try:
2449
+ at_str=atpd.strftime('%Y-%m-%d')
2450
+ except:
2451
+ at_str=atpd
2426
2452
  #plt.axvline(x=atpd,ls=":",c=color,linewidth=1.5,label=text_lang("关注点","Attention point ")+str(at))
2427
2453
  plt.axvline(x=atpd,ls=":",c=color,linewidth=1.5,label=text_lang("关注点","Attention point ")+at_str)
2428
2454
 
@@ -2801,7 +2827,11 @@ def draw_lines2(df0,y_label,x_label,axhline_value,axhline_label,title_txt, \
2801
2827
  except:
2802
2828
  atpd=at
2803
2829
 
2804
- at_str=atpd.strftime('%Y-%m-%d')
2830
+ try:
2831
+ at_str=atpd.strftime('%Y-%m-%d')
2832
+ except:
2833
+ at_str=atpd
2834
+
2805
2835
  #plt.axvline(x=atpd,ls=":",c=color,linewidth=1.5,label=text_lang("关注点","Attention point ")+str(at))
2806
2836
  plt.axvline(x=atpd,ls=":",c=color,linewidth=1.5,label=text_lang("关注点","Attention point ")+at_str)
2807
2837
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: siat
3
- Version: 3.9.20
3
+ Version: 3.9.21
4
4
  Summary: Securities Investment Analysis Tools (siat)
5
5
  Home-page: https://pypi.org/project/siat/
6
6
  Author: Prof. WANG Dehong, International Business School, Beijing Foreign Studies University
@@ -64,7 +64,7 @@ siat/future_china.py,sha256=F-HsIf2Op8Z22RzTjet1g8COzldgnMjFNSXsAkeGyWo,17595
64
64
  siat/future_china_test.py,sha256=BrSzmDVaOHki6rntOtosmRn-6dkfOBuLulJNqh7MOpc,1163
65
65
  siat/global_index_test.py,sha256=hnFp3wqqzzL-kAP8mgxDZ54Bd5Ijf6ENi5YJlGBgcXw,2402
66
66
  siat/google_authenticator.py,sha256=ZUbZR8OW0IAKDbcYtlqGqIpZdERpFor9NccFELxg9yI,1637
67
- siat/grafix.py,sha256=8aL8z5TF963T7GgW62iNL5h5P_HA_AxAVxmBJK3Os28,141240
67
+ siat/grafix.py,sha256=z5XaWWxAaPWje8zXfFJoHHgRtAHUfFCyzQRtdU3NdSw,142074
68
68
  siat/grafix_test.py,sha256=kXvcpLgQNO7wd30g_bWljLj5UH7bIVI0_dUtXbfiKR0,3150
69
69
  siat/holding_risk.py,sha256=uWRtMMJqKr-puQn26g6Fq5N3mFB70c0B99zLQug8hAo,30774
70
70
  siat/holding_risk_test.py,sha256=FRlw_9wFG98BYcg_cSj95HX5WZ1TvkGaOUdXD7-V86s,474
@@ -145,8 +145,8 @@ siat/valuation_china.py,sha256=eSKIDckyjG8QkENlW_OKkqbQHno8pzDcomBO9iGNJVM,83079
145
145
  siat/valuation_market_china_test.py,sha256=gbJ0ioauuo4koTPH6WKUkqcXiQPafnbhU5eKJ6lpdLA,1571
146
146
  siat/var_model_validation.py,sha256=R0caWnuZarrRg9939hxh3vJIIpIyPfvelYmzFNZtPbo,14910
147
147
  siat/yf_name.py,sha256=laNKMTZ9hdenGX3IZ7G0a2RLBKEWtUQJFY9CWuk_fp8,24058
148
- siat-3.9.20.dist-info/LICENSE,sha256=NTEMMROY9_4U1szoKC3N2BLHcDd_o5uTgqdVH8tbApw,1071
149
- siat-3.9.20.dist-info/METADATA,sha256=wXBJpcdrfc32c2wyhu8u4dtuP00jFsatoIMwUw3vVJQ,8396
150
- siat-3.9.20.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
151
- siat-3.9.20.dist-info/top_level.txt,sha256=r1cVyL7AIKqeAmEJjNR8FMT20OmEzufDstC2gv3NvEY,5
152
- siat-3.9.20.dist-info/RECORD,,
148
+ siat-3.9.21.dist-info/LICENSE,sha256=NTEMMROY9_4U1szoKC3N2BLHcDd_o5uTgqdVH8tbApw,1071
149
+ siat-3.9.21.dist-info/METADATA,sha256=BlxRIjZzBPns5W-qJOwLmdZkrEvbSYlMHwXZT5AF51E,8396
150
+ siat-3.9.21.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
151
+ siat-3.9.21.dist-info/top_level.txt,sha256=r1cVyL7AIKqeAmEJjNR8FMT20OmEzufDstC2gv3NvEY,5
152
+ siat-3.9.21.dist-info/RECORD,,
File without changes
File without changes