toughanimator 0.1.7__py3-none-any.whl → 0.1.8__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.
@@ -817,8 +817,18 @@ class vis_reader:
817
817
 
818
818
  vtr.GetCellData().AddArray(delPArray)
819
819
  post_variable_list.append(VisVariable(f'del_{p_name}', ValueType.Scalar, 1))
820
+
821
+ # Put cell-centered data into points
822
+ filter = vtkCellDataToPointData()
823
+ filter.SetInputData(vtr)
824
+ filter.Update()
825
+ vtr_cell_to_points = filter.GetOutput()
826
+
827
+ if vtr.GetCellData().GetArray(f'del_{p_name}') is not None:
828
+ vtr.GetPointData().AddArray(vtr_cell_to_points.GetPointData().GetArray(f'del_{p_name}'))
820
829
 
821
- # add toughreact variables
830
+
831
+ # add toughreact variables
822
832
  if self.setting.tough_version == ToughVersion.TOUGHReact or self.setting.tough_version == ToughVersion.TOUGH3:
823
833
  trapHCO2_array = vtkDoubleArray()
824
834
  trapHCO2_array.SetName('trapHCO2')
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: toughanimator
3
- Version: 0.1.7
3
+ Version: 0.1.8
4
4
  Summary: A tool for visualizing TOUGH simulation outputs.
5
5
  Home-page: https://github.com/scarletref/toughanimator
6
6
  Author: scarletref
@@ -0,0 +1,7 @@
1
+ toughanimator/__init__.py,sha256=m1f3fJ1SNGLNKxHlS0pLNHwaHlN6UUTh5GpS_8hC8kw,30
2
+ toughanimator/run.py,sha256=YmoiVElHRCo9BzMmBuB53zGy_h8AEQddllQJsqN3tV4,771
3
+ toughanimator/tough_classes.py,sha256=c_EUwDstIVv-GdoarIDI6IMOL1m0pHHYV1ep2l9Nw7I,111590
4
+ toughanimator-0.1.8.dist-info/METADATA,sha256=QyIJQViNITA9ygInPnLzaF105ywS5D7ZXcU9eCW8hTc,4563
5
+ toughanimator-0.1.8.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
6
+ toughanimator-0.1.8.dist-info/top_level.txt,sha256=pAT-UflvbjT4lTmBdzHqApZGWbywkSM3Y_qsHyLi4pU,14
7
+ toughanimator-0.1.8.dist-info/RECORD,,
@@ -1,7 +0,0 @@
1
- toughanimator/__init__.py,sha256=m1f3fJ1SNGLNKxHlS0pLNHwaHlN6UUTh5GpS_8hC8kw,30
2
- toughanimator/run.py,sha256=YmoiVElHRCo9BzMmBuB53zGy_h8AEQddllQJsqN3tV4,771
3
- toughanimator/tough_classes.py,sha256=xb6iOPd-xnY-Lv3WLI8mip38pMP3_uOBm_rLjT57h38,111206
4
- toughanimator-0.1.7.dist-info/METADATA,sha256=RL1UNzvbpB-zEiGx7ekAbukcFYdbYdyscKllq2UB5Mg,4563
5
- toughanimator-0.1.7.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
6
- toughanimator-0.1.7.dist-info/top_level.txt,sha256=pAT-UflvbjT4lTmBdzHqApZGWbywkSM3Y_qsHyLi4pU,14
7
- toughanimator-0.1.7.dist-info/RECORD,,