causing 2.4.1__tar.gz → 2.4.2__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.

Potentially problematic release.


This version of causing might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: causing
3
- Version: 2.4.1
3
+ Version: 2.4.2
4
4
  Summary: Causing: CAUSal INterpretation using Graphs
5
5
  Home-page: https://github.com/realrate/Causing
6
6
  Author: Dr. Holger Bartel
@@ -116,7 +116,7 @@ def annotated_graphs(
116
116
 
117
117
  NODE_PALETTE = "#ff7973 #FFC7AD #EEEEEE #BDE7BD #75cf73".split(" ")
118
118
  EDGE_PALETTE = "#ff7973 #FFC7AD #BBBBBB #aad3aa #75cf73".split(" ")
119
- PEN_WIDTH_PALETTE = [6, 4, 2, 4, 6]
119
+ PEN_WIDTH_PALETTE = [12, 8, 4, 8, 12]
120
120
 
121
121
 
122
122
  def color(val, max_val, palette):
@@ -175,7 +175,10 @@ def graph_to_dot(
175
175
  )
176
176
  col_str = color(data["effect"], max_val, palette=edge_palette)
177
177
  penwidth = color(data["effect"], max_val, palette=pen_width_palette)
178
- dot_str += f' "{from_node}" -> "{to_node}" [label="{eff_str}" color="{col_str}" penwidth="{penwidth}"]\n'
178
+ dot_str += (
179
+ f' "{from_node}" -> "{to_node}" [label="{eff_str}" color="{col_str}" penwidth="{penwidth}", '
180
+ f"arrowsize=0.5]\n"
181
+ )
179
182
 
180
183
  for from_node, to_node in invisible_edges:
181
184
  dot_str += f' "{from_node}" -> "{to_node}" [style = "invisible", arrowhead="none"]\n'
@@ -90,12 +90,8 @@ class Model:
90
90
  # )
91
91
  computed_yvars = []
92
92
  for eq_in in eq_inputs:
93
- try:
94
- computed_yvars.append(eq(*eq_in, *parameters.values()))
95
- except FloatingPointError:
96
- # Floating Point Error for self.yvars[i]
97
- # Adding 0.0 to overcome this.
98
- computed_yvars.append(0.0)
93
+ eq_in = [np.float128(value) for value in eq_in]
94
+ computed_yvars.append(eq(*eq_in, *parameters.values()))
99
95
 
100
96
  yhat[i] = np.array(
101
97
  computed_yvars,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: causing
3
- Version: 2.4.1
3
+ Version: 2.4.2
4
4
  Summary: Causing: CAUSal INterpretation using Graphs
5
5
  Home-page: https://github.com/realrate/Causing
6
6
  Author: Dr. Holger Bartel
@@ -5,7 +5,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
5
5
 
6
6
  setuptools.setup(
7
7
  name="causing",
8
- version="2.4.1",
8
+ version="2.4.2",
9
9
  author="Dr. Holger Bartel",
10
10
  author_email="holger.bartel@realrate.ai",
11
11
  description="Causing: CAUSal INterpretation using Graphs",
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes