Skip to content

Commit cf1c304

Browse files
committed
update changelog and remove upgrade
1 parent a7bd734 commit cf1c304

2 files changed

Lines changed: 3 additions & 16 deletions

File tree

python/CHANGELOG.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
the original schema instead (:user:`benjeffery`, :issue:`3129`, :pr:`3130`)
99

1010
**Breaking Changes**
11-
- HDF5 support is dropped (:user:`hossam26644`, :issue:`2812`, :pr:`3138`)
11+
- Legacy formats from msprime<0.6 (HDF5 formats) support is dropped. This includes the support for
12+
``tskit upgrade`` (:user:`hossam26644`, :issue:`2812`, :pr:`3138`)
1213

1314
--------------------
1415
[0.6.1] - 2025-03-31

python/tskit/cli.py

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#
22
# MIT License
33
#
4-
# Copyright (c) 2018-2024 Tskit Developers
4+
# Copyright (c) 2018-2025 Tskit Developers
55
# Copyright (c) 2015-2018 University of Oxford
66
#
77
# Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -68,19 +68,6 @@ def run_trees(args):
6868
print(tree.draw(format="unicode"))
6969

7070

71-
def run_upgrade(args):
72-
try:
73-
tree_sequence = tskit.load_legacy(args.source, args.remove_duplicate_positions)
74-
tree_sequence.dump(args.destination)
75-
except tskit.DuplicatePositionsError:
76-
sys_exit(
77-
"Error: Duplicate mutation positions in the source file detected.\n\n"
78-
'This is not supported in the current file format. Running "upgrade -d" '
79-
"will remove these duplicate positions. However, this will result in loss "
80-
"of data from the original file!"
81-
)
82-
83-
8471
def run_individuals(args):
8572
tree_sequence = load_tree_sequence(args.tree_sequence)
8673
tree_sequence.dump_text(individuals=sys.stdout, precision=args.precision)
@@ -197,7 +184,6 @@ def get_tskit_parser():
197184
default=False,
198185
help="Remove any duplicated mutation positions in the source file. ",
199186
)
200-
parser.set_defaults(runner=run_upgrade)
201187
# suppress fasta visibility until we have a reference sequence
202188
# See https://github.com/tskit-dev/tskit/issues/1888
203189
# parser = subparsers.add_parser(

0 commit comments

Comments
 (0)