geometallurgy 0.4.15__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.
- {geometallurgy-0.4.15 → geometallurgy-0.4.16}/PKG-INFO +1 -1
- {geometallurgy-0.4.15 → geometallurgy-0.4.16}/elphick/geomet/flowsheet/flowsheet.py +5 -3
- {geometallurgy-0.4.15 → geometallurgy-0.4.16}/elphick/geomet/flowsheet/operation.py +2 -3
- {geometallurgy-0.4.15 → geometallurgy-0.4.16}/pyproject.toml +1 -1
- {geometallurgy-0.4.15 → geometallurgy-0.4.16}/LICENSE +0 -0
- {geometallurgy-0.4.15 → geometallurgy-0.4.16}/README.md +0 -0
- {geometallurgy-0.4.15 → geometallurgy-0.4.16}/elphick/geomet/__init__.py +0 -0
- {geometallurgy-0.4.15 → geometallurgy-0.4.16}/elphick/geomet/base.py +0 -0
- {geometallurgy-0.4.15 → geometallurgy-0.4.16}/elphick/geomet/block_model.py +0 -0
- {geometallurgy-0.4.15 → geometallurgy-0.4.16}/elphick/geomet/config/__init__.py +0 -0
- {geometallurgy-0.4.15 → geometallurgy-0.4.16}/elphick/geomet/config/config_read.py +0 -0
- {geometallurgy-0.4.15 → geometallurgy-0.4.16}/elphick/geomet/config/flowsheet_example_partition.yaml +0 -0
- {geometallurgy-0.4.15 → geometallurgy-0.4.16}/elphick/geomet/config/flowsheet_example_simple.yaml +0 -0
- {geometallurgy-0.4.15 → geometallurgy-0.4.16}/elphick/geomet/config/mc_config.yml +0 -0
- {geometallurgy-0.4.15 → geometallurgy-0.4.16}/elphick/geomet/data/downloader.py +0 -0
- {geometallurgy-0.4.15 → geometallurgy-0.4.16}/elphick/geomet/data/register.csv +0 -0
- {geometallurgy-0.4.15 → geometallurgy-0.4.16}/elphick/geomet/datasets/__init__.py +0 -0
- {geometallurgy-0.4.15 → geometallurgy-0.4.16}/elphick/geomet/datasets/datasets.py +0 -0
- {geometallurgy-0.4.15 → geometallurgy-0.4.16}/elphick/geomet/datasets/downloader.py +0 -0
- {geometallurgy-0.4.15 → geometallurgy-0.4.16}/elphick/geomet/datasets/register.csv +0 -0
- {geometallurgy-0.4.15 → geometallurgy-0.4.16}/elphick/geomet/datasets/sample_data.py +0 -0
- {geometallurgy-0.4.15 → geometallurgy-0.4.16}/elphick/geomet/extras.py +0 -0
- {geometallurgy-0.4.15 → geometallurgy-0.4.16}/elphick/geomet/flowsheet/__init__.py +0 -0
- {geometallurgy-0.4.15 → geometallurgy-0.4.16}/elphick/geomet/flowsheet/loader.py +0 -0
- {geometallurgy-0.4.15 → geometallurgy-0.4.16}/elphick/geomet/flowsheet/stream.py +0 -0
- {geometallurgy-0.4.15 → geometallurgy-0.4.16}/elphick/geomet/interval_sample.py +0 -0
- {geometallurgy-0.4.15 → geometallurgy-0.4.16}/elphick/geomet/io.py +0 -0
- {geometallurgy-0.4.15 → geometallurgy-0.4.16}/elphick/geomet/plot.py +0 -0
- {geometallurgy-0.4.15 → geometallurgy-0.4.16}/elphick/geomet/profile.py +0 -0
- {geometallurgy-0.4.15 → geometallurgy-0.4.16}/elphick/geomet/sample.py +0 -0
- {geometallurgy-0.4.15 → geometallurgy-0.4.16}/elphick/geomet/utils/__init__.py +0 -0
- {geometallurgy-0.4.15 → geometallurgy-0.4.16}/elphick/geomet/utils/amenability.py +0 -0
- {geometallurgy-0.4.15 → geometallurgy-0.4.16}/elphick/geomet/utils/block_model_converter.py +0 -0
- {geometallurgy-0.4.15 → geometallurgy-0.4.16}/elphick/geomet/utils/components.py +0 -0
- {geometallurgy-0.4.15 → geometallurgy-0.4.16}/elphick/geomet/utils/data.py +0 -0
- {geometallurgy-0.4.15 → geometallurgy-0.4.16}/elphick/geomet/utils/estimates.py +0 -0
- {geometallurgy-0.4.15 → geometallurgy-0.4.16}/elphick/geomet/utils/interp.py +0 -0
- {geometallurgy-0.4.15 → geometallurgy-0.4.16}/elphick/geomet/utils/interp2.py +0 -0
- {geometallurgy-0.4.15 → geometallurgy-0.4.16}/elphick/geomet/utils/layout.py +0 -0
- {geometallurgy-0.4.15 → geometallurgy-0.4.16}/elphick/geomet/utils/moisture.py +0 -0
- {geometallurgy-0.4.15 → geometallurgy-0.4.16}/elphick/geomet/utils/pandas.py +0 -0
- {geometallurgy-0.4.15 → geometallurgy-0.4.16}/elphick/geomet/utils/parallel.py +0 -0
- {geometallurgy-0.4.15 → geometallurgy-0.4.16}/elphick/geomet/utils/partition.py +0 -0
- {geometallurgy-0.4.15 → geometallurgy-0.4.16}/elphick/geomet/utils/size.py +0 -0
- {geometallurgy-0.4.15 → geometallurgy-0.4.16}/elphick/geomet/utils/timer.py +0 -0
- {geometallurgy-0.4.15 → geometallurgy-0.4.16}/elphick/geomet/utils/viz.py +0 -0
- {geometallurgy-0.4.15 → geometallurgy-0.4.16}/elphick/geomet/validate.py.hide +0 -0
|
@@ -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=
|
|
282
|
-
#
|
|
283
|
-
unhealthy_data = unhealthy_data
|
|
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
|
-
|
|
106
|
-
self.
|
|
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.
|
|
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"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{geometallurgy-0.4.15 → geometallurgy-0.4.16}/elphick/geomet/config/flowsheet_example_partition.yaml
RENAMED
|
File without changes
|
{geometallurgy-0.4.15 → geometallurgy-0.4.16}/elphick/geomet/config/flowsheet_example_simple.yaml
RENAMED
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|