wizata-dsapi 2.2.0.dev23__tar.gz → 2.2.0.dev24__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 (75) hide show
  1. {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/PKG-INFO +1 -1
  2. {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/inventory.py +19 -10
  3. wizata_dsapi-2.2.0.dev24/wizata_dsapi/version.py +1 -0
  4. {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi.egg-info/PKG-INFO +1 -1
  5. wizata_dsapi-2.2.0.dev23/wizata_dsapi/version.py +0 -1
  6. {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/LICENSE.txt +0 -0
  7. {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/README.rst +0 -0
  8. {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/setup.cfg +0 -0
  9. {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/setup.py +0 -0
  10. {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/__init__.py +0 -0
  11. {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/api_config.py +0 -0
  12. {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/api_dto.py +0 -0
  13. {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/api_interface.py +0 -0
  14. {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/bucket.py +0 -0
  15. {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/business_label.py +0 -0
  16. {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/connection.py +0 -0
  17. {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/connection_discovery.py +0 -0
  18. {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/connection_policy.py +0 -0
  19. {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/connection_types.py +0 -0
  20. {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/context.py +0 -0
  21. {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/dashboard.py +0 -0
  22. {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/dataframe_toolkit.py +0 -0
  23. {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/datapoint.py +0 -0
  24. {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/datastore.py +0 -0
  25. {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/deployment.py +0 -0
  26. {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/ds_dataframe.py +0 -0
  27. {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/dsapi_json_encoder.py +0 -0
  28. {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/edge_config.py +0 -0
  29. {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/edge_device.py +0 -0
  30. {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/edge_module.py +0 -0
  31. {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/edge_package.py +0 -0
  32. {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/evaluation.py +0 -0
  33. {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/execution.py +0 -0
  34. {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/execution_log.py +0 -0
  35. {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/experiment.py +0 -0
  36. {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/formula.py +0 -0
  37. {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/graylog_log.py +0 -0
  38. {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/group_system.py +0 -0
  39. {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/ilogger.py +0 -0
  40. {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/insight.py +0 -0
  41. {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/mlmodel.py +0 -0
  42. {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/mobile_asset.py +0 -0
  43. {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/model_toolkit.py +0 -0
  44. {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/models/__init__.py +0 -0
  45. {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/models/common.py +0 -0
  46. {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/notification.py +0 -0
  47. {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/paged_query_result.py +0 -0
  48. {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/pipeline.py +0 -0
  49. {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/pipeline_image.py +0 -0
  50. {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/plot.py +0 -0
  51. {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/plots/__init__.py +0 -0
  52. {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/plots/common.py +0 -0
  53. {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/plots/theme.py +0 -0
  54. {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/product.py +0 -0
  55. {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/request.py +0 -0
  56. {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/script.py +0 -0
  57. {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/scripts/__init__.py +0 -0
  58. {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/scripts/common.py +0 -0
  59. {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/search.py +0 -0
  60. {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/solution_component.py +0 -0
  61. {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/streamlit_utils.py +0 -0
  62. {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/template.py +0 -0
  63. {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/template_config.py +0 -0
  64. {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/trigger.py +0 -0
  65. {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/twin.py +0 -0
  66. {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/twinregistration.py +0 -0
  67. {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/user.py +0 -0
  68. {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/wizard_function.py +0 -0
  69. {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/wizard_request.py +0 -0
  70. {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/wizata_dsapi_client.py +0 -0
  71. {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi/words.py +0 -0
  72. {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi.egg-info/SOURCES.txt +0 -0
  73. {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi.egg-info/dependency_links.txt +0 -0
  74. {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi.egg-info/requires.txt +0 -0
  75. {wizata_dsapi-2.2.0.dev23 → wizata_dsapi-2.2.0.dev24}/wizata_dsapi.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: wizata_dsapi
3
- Version: 2.2.0.dev23
3
+ Version: 2.2.0.dev24
4
4
  Summary: Wizata Data Science Toolkit
5
5
  Author: Wizata S.A.
6
6
  Author-email: info@wizata.com
@@ -334,7 +334,9 @@ class InventoryCountLine:
334
334
  """
335
335
  One line of a count (DEV-6128): the balance, its storage, and what the movements
336
336
  predicted at that moment. ``expected`` is the stock just before this count, without
337
- it: the count before it plus the movements since, in the datapoint's unit.
337
+ it: the count before it plus the movements since, in the datapoint's unit. With no
338
+ count before it there is nothing to check: ``expected``, ``difference`` and
339
+ ``verified`` are None (this count is the opening level).
338
340
  """
339
341
 
340
342
  def __init__(self, balance: InventoryBalance = None, twin_id=None, twin_hardware_id: str = None,
@@ -425,10 +427,12 @@ class InventoryCount:
425
427
 
426
428
  class InventoryCountControl:
427
429
  """
428
- How a count compares with the movements (DEV-6129): ``previous`` count (None when
429
- never counted before), the net quantity ``moved`` since it, so ``expected`` =
430
- previous + moved, then ``counted``, their ``difference`` and whether it is ``verified``
431
- (difference 0 after unit rounding).
430
+ How a count compares with the movements (DEV-6129): the ``previous`` count, the net
431
+ quantity ``moved`` since it, so ``expected`` = previous + moved, then ``counted``, their
432
+ ``difference`` and whether it is ``verified`` (difference 0 after unit rounding).
433
+
434
+ A count with no count before it cannot be checked: it is the opening level, and
435
+ ``previous``, ``moved``, ``expected``, ``difference`` and ``verified`` are None.
432
436
  """
433
437
 
434
438
  def __init__(self, previous: InventoryStockCount = None, moved: float = None, expected: float = None,
@@ -509,9 +513,11 @@ class InventoryHistory:
509
513
  ``opening`` is the stock at ``start``, ``closing`` at ``end``; ``events`` are every
510
514
  movement and count in between, oldest first, each with the stock after it. A count
511
515
  carries its control against the count before it, even when that one is before
512
- ``start``. ``summary`` counts the counts, the verified ones and the ``unexplained``
513
- quantity (the sum of the differences). Past the event limit, ``truncated`` is true
514
- and only the latest events are kept; the summary still covers the whole period.
516
+ ``start``. A count with no count before it is the opening level and is not checked.
517
+ ``summary`` gives the ``counts``, how many could be ``checked``, how many of those are
518
+ ``verified``, and the ``unexplained`` quantity (the sum of their differences). Past the
519
+ event limit, ``truncated`` is true and only the latest events are kept; the summary
520
+ still covers the whole period.
515
521
  """
516
522
 
517
523
  def __init__(self, datapoint: str = None, product: str = None, start=None, end=None, unit=None,
@@ -528,6 +534,7 @@ class InventoryHistory:
528
534
  self.events: list = list(events or [])
529
535
  self.truncated: bool = truncated
530
536
  self.counts: int = 0
537
+ self.checked: int = 0
531
538
  self.verified: int = 0
532
539
  self.unexplained: float = 0.0
533
540
 
@@ -539,7 +546,8 @@ class InventoryHistory:
539
546
  "opening": {"timestamp": ts(self.start), "quantity": self.opening},
540
547
  "closing": {"timestamp": ts(self.end), "quantity": self.closing},
541
548
  "events": [e.to_dict() for e in self.events],
542
- "summary": {"counts": self.counts, "verified": self.verified, "unexplained": self.unexplained},
549
+ "summary": {"counts": self.counts, "checked": self.checked, "verified": self.verified,
550
+ "unexplained": self.unexplained},
543
551
  "truncated": self.truncated}
544
552
 
545
553
  @classmethod
@@ -552,10 +560,11 @@ class InventoryHistory:
552
560
  events=[InventoryHistoryEvent.from_dict(e) for e in data.get("events") or []],
553
561
  truncated=bool(data.get("truncated")))
554
562
  obj.counts = summary.get("counts", 0)
563
+ obj.checked = summary.get("checked", 0)
555
564
  obj.verified = summary.get("verified", 0)
556
565
  obj.unexplained = summary.get("unexplained", 0.0)
557
566
  return obj
558
567
 
559
568
  def __repr__(self) -> str:
560
569
  return (f"InventoryHistory({self.datapoint!r}, {self.product!r}, {len(self.events)} events, "
561
- f"{self.verified}/{self.counts} counts verified)")
570
+ f"{self.verified}/{self.checked} checked counts verified)")
@@ -0,0 +1 @@
1
+ __version__ = "2.2.0.dev24"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: wizata_dsapi
3
- Version: 2.2.0.dev23
3
+ Version: 2.2.0.dev24
4
4
  Summary: Wizata Data Science Toolkit
5
5
  Author: Wizata S.A.
6
6
  Author-email: info@wizata.com
@@ -1 +0,0 @@
1
- __version__ = "2.2.0.dev23"