tskit 1.0.0b1__cp313-cp313-win_amd64.whl → 1.0.0b3__cp313-cp313-win_amd64.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.
Binary file
tskit/_version.py CHANGED
@@ -1,4 +1,4 @@
1
1
  # Definitive location for the version number.
2
2
  # During development, should be x.y.z.devN
3
3
  # For beta should be x.y.zbN
4
- tskit_version = "1.0.0b1"
4
+ tskit_version = "1.0.0b3"
tskit/combinatorics.py CHANGED
@@ -541,6 +541,12 @@ class TopologyCounter:
541
541
  k = TopologyCounter._to_key(sample_set_indexes)
542
542
  self.topologies[k] = counter
543
543
 
544
+ def __iter__(self):
545
+ raise TypeError(
546
+ "TopologyCounter object is not iterable, "
547
+ "iterate over '.topologies' instead"
548
+ )
549
+
544
550
  @staticmethod
545
551
  def _to_key(sample_set_indexes):
546
552
  if not isinstance(sample_set_indexes, collections.abc.Iterable):
tskit/exceptions.py CHANGED
@@ -60,3 +60,11 @@ class MetadataEncodingError(TskitException):
60
60
  """
61
61
  A metadata object was of a type that could not be encoded
62
62
  """
63
+
64
+
65
+ class ImmutableTableError(ValueError):
66
+ """
67
+ Raised when attempting to modify an immutable table view.
68
+
69
+ Use TreeSequence.dump_tables() to get a mutable copy.
70
+ """
tskit/jit/__init__.py ADDED
File without changes