reflexive 2.2.2__py3-none-any.whl → 2.2.3__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.
@@ -55,24 +55,20 @@ def _create_graph(matrix,id)->Graph:
55
55
  if matrix:
56
56
  graph = _graph_from_edges(dict(_matrix_to_dict(matrix)))
57
57
  else:
58
- graph = _graph_no_edges()
58
+ graph = _graph_no_edges() # Empty graph
59
59
  prop_list = _res_graph_properties().values()
60
+ # Set positioins and labels - common to all graphs
60
61
  graph.vp["v_positions"] = graph.new_vp("vector<double>",vals=[prop['pos'] for prop in prop_list])
61
62
  graph.vp["v_labels"] = graph.new_vp("string",vals=[prop['lbl'] for prop in prop_list])
62
63
  graph.gp["id"] = graph.new_gp("string",val=id)
63
64
  return graph
64
-
65
- # # Vertex properties common to all graphs
66
- # v_lbl = graph.new_vp("string",vals=_get_prop_values('lbl'))
67
- # v_pos = graph.new_vp("vector<double>",vals=_get_prop_values('pos'))
68
- # # Make propertyMaps internal to the graph
69
- # graph.vp["v_colour"] = v_clr
70
- # graph.vp["v_position"] = v_pos
71
- # graph.vp["v_label"] = v_lbl
72
- # graph.ep["e_weights"] = e_weight
73
65
 
74
66
  def _graph_from_edges(edges:dict)->Graph:
75
67
  graph = Graph(g=edges.keys(),directed=False)
68
+ # Add missing vertices
69
+ for i in range(5):
70
+ graph.vertex(i,add_missing=True)
71
+ # Set edge and vertex propertymaps
76
72
  graph.ep["e_weights"] = graph.new_ep("double",vals=edges.values())
77
73
  graph.ep["e_widths"] = graph.new_ep("double",vals=_scale_weights(edges.values()))
78
74
  graph.vp["v_colours"] = _get_vcolours_from_edges(graph)
@@ -1,11 +1,11 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: reflexive
3
- Version: 2.2.2
3
+ Version: 2.2.3
4
4
  Summary: Supports AWS Reflexive Expressions Systems (RES) Analysis
5
- Project-URL: Repository, https://github.com/nlytx/reflexive.git
5
+ Project-URL: Repository, https://codeberg.org/andrewresearch/reflexive.git
6
6
  Author-email: Andrew Gibson <andrew@nlytx.io>
7
7
  License-File: LICENSE
8
- Classifier: Development Status :: 4 - Beta
8
+ Classifier: Development Status :: 5 - Production/Stable
9
9
  Classifier: License :: OSI Approved :: Apache Software License
10
10
  Classifier: Operating System :: OS Independent
11
11
  Classifier: Programming Language :: Python :: 3
@@ -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=7oxboHt3viXagY8fxfyF3PfWYgoXw6p5PshKLAB3C8s,5505
4
+ reflexive/res_analysis.py,sha256=nLx9kUdaQnJqkHY7xjhyypaCnmlzyL91X8dtFO6SLMM,7511
5
+ reflexive/service.py,sha256=O0MX2BCHTSNG_eW6LHBN1FOjaNTCGgYgh7vsk58NNAk,1927
6
+ reflexive-2.2.3.dist-info/METADATA,sha256=YR6Bm-cfe5JNSvczRGo5wXLgCjAGUmxPglaNEErN_vU,598
7
+ reflexive-2.2.3.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
8
+ reflexive-2.2.3.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
9
+ reflexive-2.2.3.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: hatchling 1.27.0
2
+ Generator: hatchling 1.28.0
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
@@ -1,9 +0,0 @@
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,,