reflexive 2.2.0__py3-none-any.whl → 2.2.2__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.
@@ -142,7 +142,10 @@ def _calc_res_weights(interactions:dict[tuple,int])->dict[tuple,float]:
142
142
  max_count = max(interactions.values())
143
143
  weights = dict()
144
144
  for edge,count in interactions.items():
145
- weights[edge] = round(count/(max_count),2)
145
+ if max_count != 0:
146
+ weights[edge] = round(count/(max_count),2)
147
+ else:
148
+ weights[edge] = 0
146
149
  return weights
147
150
 
148
151
 
reflexive/res_analysis.py CHANGED
@@ -152,9 +152,10 @@ class RES_analyser:
152
152
  file_names = []
153
153
  texts = []
154
154
  for file_name in sorted(os.listdir(file_path)):
155
- file_names.append(file_name.split('.')[0])
156
- with open(os.path.join(file_path,file_name),'r') as fp:
157
- texts.append(fp.read())
155
+ if not file_name.startswith('.'):
156
+ file_names.append(file_name.split('.')[0])
157
+ with open(os.path.join(file_path,file_name),'r') as fp:
158
+ texts.append(fp.read())
158
159
  return {"doc_name":file_names,"text":texts}
159
160
 
160
161
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: reflexive
3
- Version: 2.2.0
3
+ Version: 2.2.2
4
4
  Summary: Supports AWS Reflexive Expressions Systems (RES) Analysis
5
5
  Project-URL: Repository, https://github.com/nlytx/reflexive.git
6
6
  Author-email: Andrew Gibson <andrew@nlytx.io>
@@ -0,0 +1,9 @@
1
+ reflexive/__init__.py,sha256=UkA6xvSu40CGYguUuiBqBMnPBkld0h0GR9UnZrptdZI,167
2
+ reflexive/analysis_functions.py,sha256=blEG1aSZVUUw6PgzSSyKsbSjnO0v0nSu7YxRfId0E_4,16266
3
+ reflexive/display_functions.py,sha256=2LdkINOgmZfiV7nkW0x_IeimxW3J80YIOOnjX21-RJA,5699
4
+ reflexive/res_analysis.py,sha256=nLx9kUdaQnJqkHY7xjhyypaCnmlzyL91X8dtFO6SLMM,7511
5
+ reflexive/service.py,sha256=O0MX2BCHTSNG_eW6LHBN1FOjaNTCGgYgh7vsk58NNAk,1927
6
+ reflexive-2.2.2.dist-info/METADATA,sha256=wZdNeNw14HYEgvLkgrcloW1ny3EYZ9fWnJR8cNz22rs,574
7
+ reflexive-2.2.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
8
+ reflexive-2.2.2.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
9
+ reflexive-2.2.2.dist-info/RECORD,,
@@ -1,9 +0,0 @@
1
- reflexive/__init__.py,sha256=UkA6xvSu40CGYguUuiBqBMnPBkld0h0GR9UnZrptdZI,167
2
- reflexive/analysis_functions.py,sha256=ufB2AGaJyFZKYHppa7T30YYdONEotHVvLkrxMHFfKJE,16191
3
- reflexive/display_functions.py,sha256=2LdkINOgmZfiV7nkW0x_IeimxW3J80YIOOnjX21-RJA,5699
4
- reflexive/res_analysis.py,sha256=ZeXMA8ckRo1UCct4F4tjCwLbU3iBwShiIvnVGwP-x7E,7453
5
- reflexive/service.py,sha256=O0MX2BCHTSNG_eW6LHBN1FOjaNTCGgYgh7vsk58NNAk,1927
6
- reflexive-2.2.0.dist-info/METADATA,sha256=FNVFaVGcF8Oi7KuvM18RenUG5f4wNeVZSRY-ae7P_5s,574
7
- reflexive-2.2.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
8
- reflexive-2.2.0.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
9
- reflexive-2.2.0.dist-info/RECORD,,