reflexive 1.2.6__tar.gz → 1.2.7__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.
- {reflexive-1.2.6 → reflexive-1.2.7}/PKG-INFO +1 -1
- {reflexive-1.2.6 → reflexive-1.2.7}/pyproject.toml +1 -1
- {reflexive-1.2.6 → reflexive-1.2.7}/src/reflexive/res.py +16 -3
- {reflexive-1.2.6 → reflexive-1.2.7}/.gitignore +0 -0
- {reflexive-1.2.6 → reflexive-1.2.7}/LICENSE +0 -0
- {reflexive-1.2.6 → reflexive-1.2.7}/README.md +0 -0
- {reflexive-1.2.6 → reflexive-1.2.7}/old reflexive dist/reflexive-1.0.13-py3-none-any.whl +0 -0
- {reflexive-1.2.6 → reflexive-1.2.7}/old reflexive dist/reflexive-1.0.13.tar.gz +0 -0
- {reflexive-1.2.6 → reflexive-1.2.7}/old reflexive dist/reflexive-1.0.14-py3-none-any.whl +0 -0
- {reflexive-1.2.6 → reflexive-1.2.7}/old reflexive dist/reflexive-1.0.14.tar.gz +0 -0
- {reflexive-1.2.6 → reflexive-1.2.7}/old reflexive dist/reflexive-1.0.15-py3-none-any.whl +0 -0
- {reflexive-1.2.6 → reflexive-1.2.7}/old reflexive dist/reflexive-1.0.15.tar.gz +0 -0
- {reflexive-1.2.6 → reflexive-1.2.7}/old reflexive dist/reflexive-1.0.16-py3-none-any.whl +0 -0
- {reflexive-1.2.6 → reflexive-1.2.7}/old reflexive dist/reflexive-1.0.16.tar.gz +0 -0
- {reflexive-1.2.6 → reflexive-1.2.7}/old reflexive dist/reflexive-1.0.17-py3-none-any.whl +0 -0
- {reflexive-1.2.6 → reflexive-1.2.7}/old reflexive dist/reflexive-1.0.17.tar.gz +0 -0
- {reflexive-1.2.6 → reflexive-1.2.7}/old reflexive dist/reflexive-1.0.18-py3-none-any.whl +0 -0
- {reflexive-1.2.6 → reflexive-1.2.7}/old reflexive dist/reflexive-1.0.18.tar.gz +0 -0
- {reflexive-1.2.6 → reflexive-1.2.7}/old reflexive dist/reflexive-1.0.19-py3-none-any.whl +0 -0
- {reflexive-1.2.6 → reflexive-1.2.7}/old reflexive dist/reflexive-1.0.19.tar.gz +0 -0
- {reflexive-1.2.6 → reflexive-1.2.7}/old reflexive dist/reflexive-1.0.20-py3-none-any.whl +0 -0
- {reflexive-1.2.6 → reflexive-1.2.7}/old reflexive dist/reflexive-1.0.20.tar.gz +0 -0
- {reflexive-1.2.6 → reflexive-1.2.7}/old reflexive dist/reflexive-1.1.0-py3-none-any.whl +0 -0
- {reflexive-1.2.6 → reflexive-1.2.7}/old reflexive dist/reflexive-1.1.0.tar.gz +0 -0
- {reflexive-1.2.6 → reflexive-1.2.7}/old reflexive dist/reflexive-1.1.1-py3-none-any.whl +0 -0
- {reflexive-1.2.6 → reflexive-1.2.7}/old reflexive dist/reflexive-1.1.1.tar.gz +0 -0
- {reflexive-1.2.6 → reflexive-1.2.7}/src/reflexive/__init__.py +0 -0
- {reflexive-1.2.6 → reflexive-1.2.7}/src/reflexive/analyse.py +0 -0
- {reflexive-1.2.6 → reflexive-1.2.7}/src/reflexive/cfg.py +0 -0
- {reflexive-1.2.6 → reflexive-1.2.7}/src/reflexive/res_functions.py +0 -0
- {reflexive-1.2.6 → reflexive-1.2.7}/src/reflexive/session.py +0 -0
- {reflexive-1.2.6 → reflexive-1.2.7}/src/reflexive/util.py +0 -0
- {reflexive-1.2.6 → reflexive-1.2.7}/src/reflexive/visualise.py +0 -0
- {reflexive-1.2.6 → reflexive-1.2.7}/tests/__init__.py +0 -0
- {reflexive-1.2.6 → reflexive-1.2.7}/tests/test_reflexive.py +0 -0
|
@@ -125,11 +125,24 @@ class Res_display:
|
|
|
125
125
|
df = self._add_res_adj_matrix(df)
|
|
126
126
|
return df
|
|
127
127
|
|
|
128
|
-
def show_graph(self,df:DataFrame,inline=True) -> str:
|
|
128
|
+
def show_graph(self,df:DataFrame,scale=100,inline=True) -> str:
|
|
129
129
|
for am in df.res_adj_matrix:
|
|
130
|
-
|
|
130
|
+
if scale > 1:
|
|
131
|
+
sm = self._scale_adj_matrix(am,scale)
|
|
132
|
+
else:
|
|
133
|
+
sm = am
|
|
134
|
+
g = RES_graph(sm)
|
|
131
135
|
g.show()
|
|
132
|
-
return
|
|
136
|
+
return ""
|
|
137
|
+
|
|
138
|
+
def _scale_adj_matrix(self,adj_matrix,scale):
|
|
139
|
+
new_adj = []
|
|
140
|
+
for row in adj_matrix:
|
|
141
|
+
new_row = []
|
|
142
|
+
for c in row:
|
|
143
|
+
new_row.append(round(c*scale,1))
|
|
144
|
+
new_adj.append(new_row)
|
|
145
|
+
return new_adj
|
|
133
146
|
|
|
134
147
|
def _add_res_sequence(self,df):
|
|
135
148
|
temp_df = df.copy()
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|