virgo-modules 0.0.72__py3-none-any.whl → 0.0.73__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.
Potentially problematic release.
This version of virgo-modules might be problematic. Click here for more details.
- virgo_modules/src/re_utils.py +19 -3
- {virgo_modules-0.0.72.dist-info → virgo_modules-0.0.73.dist-info}/METADATA +1 -1
- {virgo_modules-0.0.72.dist-info → virgo_modules-0.0.73.dist-info}/RECORD +6 -6
- {virgo_modules-0.0.72.dist-info → virgo_modules-0.0.73.dist-info}/LICENSE +0 -0
- {virgo_modules-0.0.72.dist-info → virgo_modules-0.0.73.dist-info}/WHEEL +0 -0
- {virgo_modules-0.0.72.dist-info → virgo_modules-0.0.73.dist-info}/top_level.txt +0 -0
virgo_modules/src/re_utils.py
CHANGED
|
@@ -611,6 +611,23 @@ class produce_plotly_plots:
|
|
|
611
611
|
ma1 = self.settings['settings'][spread_column]['ma1']
|
|
612
612
|
ma2 = self.settings['settings'][spread_column]['ma2']
|
|
613
613
|
hmm_n_clust = self.settings['settings']['hmm']['n_clusters']
|
|
614
|
+
|
|
615
|
+
def return_FeatureSingal_lists(feature, feature_2):
|
|
616
|
+
signal_up_list = [f'signal_up_{feature}', f'signal_up_{feature_2}']
|
|
617
|
+
signal_low_list = [f'signal_low_{feature}', f'signal_low_{feature_2}']
|
|
618
|
+
norm_list = [f'norm_{feature}', f'z_{feature}', feature]
|
|
619
|
+
return norm_list, signal_up_list, signal_low_list
|
|
620
|
+
|
|
621
|
+
# feature_list corrector
|
|
622
|
+
new_feature_list = list()
|
|
623
|
+
for feature in feature_list:
|
|
624
|
+
norm_list, _ , _ = return_FeatureSingal_lists(feature, '')
|
|
625
|
+
for norm_feat in norm_list:
|
|
626
|
+
if norm_feat in df.columns:
|
|
627
|
+
new_feature_list.append(feature)
|
|
628
|
+
break
|
|
629
|
+
|
|
630
|
+
feature_list = new_feature_list
|
|
614
631
|
feature_rows = len(feature_list)
|
|
615
632
|
|
|
616
633
|
rows_subplot = feature_rows + 1
|
|
@@ -627,9 +644,8 @@ class produce_plotly_plots:
|
|
|
627
644
|
### signal plots
|
|
628
645
|
for row_i, feature in enumerate(feature_list,start=1):
|
|
629
646
|
feature_2 = 'nan'
|
|
630
|
-
signal_up_list =
|
|
631
|
-
|
|
632
|
-
norm_list = [f'norm_{feature}', f'z_{feature}', feature]
|
|
647
|
+
norm_list, signal_up_list, signal_low_list = return_FeatureSingal_lists(feature, feature_2)
|
|
648
|
+
|
|
633
649
|
# signal
|
|
634
650
|
for norm_feat in norm_list:
|
|
635
651
|
if norm_feat in df.columns:
|
|
@@ -3,10 +3,10 @@ virgo_modules/src/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU
|
|
|
3
3
|
virgo_modules/src/aws_utils.py,sha256=GWmVdXM0mIJJPn-X-bEtM4KtNPCHM1D457hnuKxaM7E,1383
|
|
4
4
|
virgo_modules/src/edge_utils.py,sha256=Ihdmq7dyb8gOvG6CrDal7wsa15tqsdsFk6KINwM6578,7691
|
|
5
5
|
virgo_modules/src/pull_artifacts.py,sha256=5OPrgR7pcMSdpbevDRhf0ebk7g7ZRjff4NpTIIWAKjE,1989
|
|
6
|
-
virgo_modules/src/re_utils.py,sha256=
|
|
6
|
+
virgo_modules/src/re_utils.py,sha256=IF0l8eduTgHLASyXcZu1TIazJVPt4vzw-CeDyw2YfdQ,53096
|
|
7
7
|
virgo_modules/src/ticketer_source.py,sha256=ciMPObqntAFtnlY1IPt8-Y4mz6yuD1jy6gRQN109D4M,104837
|
|
8
|
-
virgo_modules-0.0.
|
|
9
|
-
virgo_modules-0.0.
|
|
10
|
-
virgo_modules-0.0.
|
|
11
|
-
virgo_modules-0.0.
|
|
12
|
-
virgo_modules-0.0.
|
|
8
|
+
virgo_modules-0.0.73.dist-info/LICENSE,sha256=pNgFyCYgmimaw0o6V20JupZLROycAnOA_HDDh1tX2V4,1097
|
|
9
|
+
virgo_modules-0.0.73.dist-info/METADATA,sha256=5tfBdlfAsrkRu4IVo_rxWhrgqm3P4UKjt_On8vM__Bw,1429
|
|
10
|
+
virgo_modules-0.0.73.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
|
|
11
|
+
virgo_modules-0.0.73.dist-info/top_level.txt,sha256=ZjI-qEkDtT-8mFwGAWnXfqPOKEGlIhWRW1es1VyXc60,14
|
|
12
|
+
virgo_modules-0.0.73.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|