geometallurgy 0.4.14__tar.gz → 0.4.16__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.
Files changed (47) hide show
  1. {geometallurgy-0.4.14 → geometallurgy-0.4.16}/PKG-INFO +2 -2
  2. {geometallurgy-0.4.14 → geometallurgy-0.4.16}/elphick/geomet/flowsheet/flowsheet.py +5 -3
  3. {geometallurgy-0.4.14 → geometallurgy-0.4.16}/elphick/geomet/flowsheet/operation.py +2 -3
  4. {geometallurgy-0.4.14 → geometallurgy-0.4.16}/pyproject.toml +2 -2
  5. {geometallurgy-0.4.14 → geometallurgy-0.4.16}/LICENSE +0 -0
  6. {geometallurgy-0.4.14 → geometallurgy-0.4.16}/README.md +0 -0
  7. {geometallurgy-0.4.14 → geometallurgy-0.4.16}/elphick/geomet/__init__.py +0 -0
  8. {geometallurgy-0.4.14 → geometallurgy-0.4.16}/elphick/geomet/base.py +0 -0
  9. {geometallurgy-0.4.14 → geometallurgy-0.4.16}/elphick/geomet/block_model.py +0 -0
  10. {geometallurgy-0.4.14 → geometallurgy-0.4.16}/elphick/geomet/config/__init__.py +0 -0
  11. {geometallurgy-0.4.14 → geometallurgy-0.4.16}/elphick/geomet/config/config_read.py +0 -0
  12. {geometallurgy-0.4.14 → geometallurgy-0.4.16}/elphick/geomet/config/flowsheet_example_partition.yaml +0 -0
  13. {geometallurgy-0.4.14 → geometallurgy-0.4.16}/elphick/geomet/config/flowsheet_example_simple.yaml +0 -0
  14. {geometallurgy-0.4.14 → geometallurgy-0.4.16}/elphick/geomet/config/mc_config.yml +0 -0
  15. {geometallurgy-0.4.14 → geometallurgy-0.4.16}/elphick/geomet/data/downloader.py +0 -0
  16. {geometallurgy-0.4.14 → geometallurgy-0.4.16}/elphick/geomet/data/register.csv +0 -0
  17. {geometallurgy-0.4.14 → geometallurgy-0.4.16}/elphick/geomet/datasets/__init__.py +0 -0
  18. {geometallurgy-0.4.14 → geometallurgy-0.4.16}/elphick/geomet/datasets/datasets.py +0 -0
  19. {geometallurgy-0.4.14 → geometallurgy-0.4.16}/elphick/geomet/datasets/downloader.py +0 -0
  20. {geometallurgy-0.4.14 → geometallurgy-0.4.16}/elphick/geomet/datasets/register.csv +0 -0
  21. {geometallurgy-0.4.14 → geometallurgy-0.4.16}/elphick/geomet/datasets/sample_data.py +0 -0
  22. {geometallurgy-0.4.14 → geometallurgy-0.4.16}/elphick/geomet/extras.py +0 -0
  23. {geometallurgy-0.4.14 → geometallurgy-0.4.16}/elphick/geomet/flowsheet/__init__.py +0 -0
  24. {geometallurgy-0.4.14 → geometallurgy-0.4.16}/elphick/geomet/flowsheet/loader.py +0 -0
  25. {geometallurgy-0.4.14 → geometallurgy-0.4.16}/elphick/geomet/flowsheet/stream.py +0 -0
  26. {geometallurgy-0.4.14 → geometallurgy-0.4.16}/elphick/geomet/interval_sample.py +0 -0
  27. {geometallurgy-0.4.14 → geometallurgy-0.4.16}/elphick/geomet/io.py +0 -0
  28. {geometallurgy-0.4.14 → geometallurgy-0.4.16}/elphick/geomet/plot.py +0 -0
  29. {geometallurgy-0.4.14 → geometallurgy-0.4.16}/elphick/geomet/profile.py +0 -0
  30. {geometallurgy-0.4.14 → geometallurgy-0.4.16}/elphick/geomet/sample.py +0 -0
  31. {geometallurgy-0.4.14 → geometallurgy-0.4.16}/elphick/geomet/utils/__init__.py +0 -0
  32. {geometallurgy-0.4.14 → geometallurgy-0.4.16}/elphick/geomet/utils/amenability.py +0 -0
  33. {geometallurgy-0.4.14 → geometallurgy-0.4.16}/elphick/geomet/utils/block_model_converter.py +0 -0
  34. {geometallurgy-0.4.14 → geometallurgy-0.4.16}/elphick/geomet/utils/components.py +0 -0
  35. {geometallurgy-0.4.14 → geometallurgy-0.4.16}/elphick/geomet/utils/data.py +0 -0
  36. {geometallurgy-0.4.14 → geometallurgy-0.4.16}/elphick/geomet/utils/estimates.py +0 -0
  37. {geometallurgy-0.4.14 → geometallurgy-0.4.16}/elphick/geomet/utils/interp.py +0 -0
  38. {geometallurgy-0.4.14 → geometallurgy-0.4.16}/elphick/geomet/utils/interp2.py +0 -0
  39. {geometallurgy-0.4.14 → geometallurgy-0.4.16}/elphick/geomet/utils/layout.py +0 -0
  40. {geometallurgy-0.4.14 → geometallurgy-0.4.16}/elphick/geomet/utils/moisture.py +0 -0
  41. {geometallurgy-0.4.14 → geometallurgy-0.4.16}/elphick/geomet/utils/pandas.py +0 -0
  42. {geometallurgy-0.4.14 → geometallurgy-0.4.16}/elphick/geomet/utils/parallel.py +0 -0
  43. {geometallurgy-0.4.14 → geometallurgy-0.4.16}/elphick/geomet/utils/partition.py +0 -0
  44. {geometallurgy-0.4.14 → geometallurgy-0.4.16}/elphick/geomet/utils/size.py +0 -0
  45. {geometallurgy-0.4.14 → geometallurgy-0.4.16}/elphick/geomet/utils/timer.py +0 -0
  46. {geometallurgy-0.4.14 → geometallurgy-0.4.16}/elphick/geomet/utils/viz.py +0 -0
  47. {geometallurgy-0.4.14 → geometallurgy-0.4.16}/elphick/geomet/validate.py.hide +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: geometallurgy
3
- Version: 0.4.14
3
+ Version: 0.4.16
4
4
  Summary: Tools for the geometallurgist
5
5
  Home-page: https://github.com/elphick/geometallurgy
6
6
  Author: Greg
@@ -14,7 +14,7 @@ Provides-Extra: blockmodel
14
14
  Provides-Extra: spatial
15
15
  Provides-Extra: validation
16
16
  Requires-Dist: folium (>=0.16.0,<0.17.0) ; extra == "spatial"
17
- Requires-Dist: omfpandas (>=0.8.1,<0.9.0) ; extra == "blockmodel"
17
+ Requires-Dist: omfpandas (>=0.8.1) ; extra == "blockmodel"
18
18
  Requires-Dist: omfvista (>=0.3.0) ; extra == "blockmodel"
19
19
  Requires-Dist: pandas (>=1.0)
20
20
  Requires-Dist: pandera[io] (>=0.19.3,<0.21.0) ; extra == "validation"
@@ -264,6 +264,8 @@ class Flowsheet:
264
264
  records.columns = [f"{col[0]}_{col[1]}" for col in records.columns]
265
265
 
266
266
  result = unhealthy_data.merge(records, left_index=True, right_index=True, how='left')
267
+ # add stream to the index
268
+ result.set_index('stream', append=True, inplace=True)
267
269
  return result
268
270
 
269
271
  def unhealthy_node_records(self) -> pd.DataFrame:
@@ -278,9 +280,9 @@ class Flowsheet:
278
280
  'mc'].is_balanced]
279
281
  unhealthy_data: pd.DataFrame = pd.concat(
280
282
  [self.graph.nodes[n]['mc'].unbalanced_records.assign(node=self.graph.nodes[n]['mc'].name) for n in
281
- unhealthy_nodes], axis=1)
282
- # move the last column to the front
283
- unhealthy_data = unhealthy_data[[unhealthy_data.columns[-1]] + list(unhealthy_data.columns[:-1])]
283
+ unhealthy_nodes], axis=0)
284
+ # add the node to the index
285
+ unhealthy_data = unhealthy_data.set_index('node', append=True)
284
286
 
285
287
  # todo: append the streams around the node
286
288
 
@@ -102,9 +102,8 @@ class Operation:
102
102
  return None
103
103
 
104
104
  input_mass, output_mass = self.get_input_mass(), self.get_output_mass()
105
- is_balanced = np.all(np.isclose(input_mass.fillna(0.0), output_mass.fillna(0.0)))
106
- self._unbalanced_records = (input_mass - output_mass).loc[~np.isclose(input_mass, output_mass).any(axis=1)]
107
- self._is_balanced = is_balanced
105
+ self._unbalanced_records = (input_mass - output_mass).loc[(~np.isclose(input_mass, output_mass)).any(axis=1)]
106
+ self._is_balanced = self._unbalanced_records.shape[0] == 0
108
107
 
109
108
  @property
110
109
  def is_balanced(self) -> Optional[bool]:
@@ -1,7 +1,7 @@
1
1
  [tool.poetry]
2
2
  name = "geometallurgy"
3
3
  packages = [{ include = "elphick/geomet" }]
4
- version = "0.4.14"
4
+ version = "0.4.16"
5
5
  description = "Tools for the geometallurgist"
6
6
  authors = ["Greg <11791585+elphick@users.noreply.github.com>"]
7
7
  repository = "https://github.com/elphick/geometallurgy"
@@ -45,7 +45,7 @@ pyarrow = ">=16.1.0,<18.0.0"
45
45
  folium = { version = "^0.16.0", optional = true }
46
46
  rioxarray = { version = "^0.18.2", optional = true }
47
47
  pandera = { version = ">=0.19.3,<0.21.0", extras = ['io'], optional = true }
48
- omfpandas = { version = "^0.8.1", optional = true }
48
+ omfpandas = { version = ">=0.8.1", optional = true }
49
49
  #omf = { version = "<2.0" }
50
50
 
51
51
  omfvista = { version = ">=0.3.0", optional = true }
File without changes
File without changes