We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ced684 commit aeaa446Copy full SHA for aeaa446
tsinfer/formats.py
@@ -2649,13 +2649,12 @@ def process_array(
2649
logger.info(
2650
f"Number of individuals after applying mask: {self.num_individuals}"
2651
)
2652
- if sequence_length is not None:
2653
- if sequence_length <= self.sites_position[-1]:
2654
- raise ValueError(
2655
- "`sequence_length` cannot be less than or equal to the maximum "
2656
- "unmasked variant position"
2657
- )
2658
self._sequence_length = sequence_length
+ if self.sequence_length <= self.sites_position[-1]:
+ raise ValueError(
+ "`sequence_length` cannot be less than or equal to the maximum "
+ "unmasked variant position"
+ )
2659
2660
@classmethod
2661
def from_arrays(
0 commit comments