reflexive 2.2.1__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.
- reflexive/analysis_functions.py +4 -1
- {reflexive-2.2.1.dist-info → reflexive-2.2.2.dist-info}/METADATA +1 -1
- {reflexive-2.2.1.dist-info → reflexive-2.2.2.dist-info}/RECORD +5 -5
- {reflexive-2.2.1.dist-info → reflexive-2.2.2.dist-info}/WHEEL +0 -0
- {reflexive-2.2.1.dist-info → reflexive-2.2.2.dist-info}/licenses/LICENSE +0 -0
reflexive/analysis_functions.py
CHANGED
|
@@ -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
|
-
|
|
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
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
reflexive/__init__.py,sha256=UkA6xvSu40CGYguUuiBqBMnPBkld0h0GR9UnZrptdZI,167
|
|
2
|
-
reflexive/analysis_functions.py,sha256=
|
|
2
|
+
reflexive/analysis_functions.py,sha256=blEG1aSZVUUw6PgzSSyKsbSjnO0v0nSu7YxRfId0E_4,16266
|
|
3
3
|
reflexive/display_functions.py,sha256=2LdkINOgmZfiV7nkW0x_IeimxW3J80YIOOnjX21-RJA,5699
|
|
4
4
|
reflexive/res_analysis.py,sha256=nLx9kUdaQnJqkHY7xjhyypaCnmlzyL91X8dtFO6SLMM,7511
|
|
5
5
|
reflexive/service.py,sha256=O0MX2BCHTSNG_eW6LHBN1FOjaNTCGgYgh7vsk58NNAk,1927
|
|
6
|
-
reflexive-2.2.
|
|
7
|
-
reflexive-2.2.
|
|
8
|
-
reflexive-2.2.
|
|
9
|
-
reflexive-2.2.
|
|
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,,
|
|
File without changes
|
|
File without changes
|