Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ Do not tell the user you are "done" or that changes are "complete" until both pa
- If something goes sideways, STOP and re-plan immediately — don't keep pushing
- Use planning/verification steps, not just building
- Write detailed specs upfront to reduce ambiguity
- Per-issue plans kept under `tasks/` are removed in the PR that closes the issue; only `tasks/lessons.md` stays

### 2. Self-Improvement Loop
- After ANY correction from the user: capture the pattern (in Claude Code memory or `tasks/lessons.md`)
Expand Down
10 changes: 10 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,16 @@
Changes in each published version, newest first. These notes start at 2.27.2;
earlier versions are available as [Git tags](https://github.com/openvax/pyensembl/tags).

## 2.34.7

Maintenance only; no behaviour change for supported use. Removes the unused
`EnsemblRelease.normalize_init_values` classmethod, which had no callers
in PyEnsembl or the packages that depend on it (#522), and stops
pinning pickle protocol 2 (a Python 2 leftover) when writing cache files;
existing cache files still load. Also deletes the finished implementation
plans under `tasks/` and the one-off `scripts/benchmark_gtf_indexing.py`
(#513).

## 2.34.6

`pyensembl list` no longer reports the HGNC alias snapshot cached by
Expand Down
3 changes: 1 addition & 2 deletions pyensembl/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,7 @@ def _read_progress(raw, description, enabled):
def dump_pickle(obj, filepath):
# Atomic, so an interrupted write never leaves a truncated index behind.
with _atomic_output(filepath) as f:
# use lower protocol for compatibility between Python 2 and Python 3
pickle.dump(obj, file=f, protocol=2)
pickle.dump(obj, file=f)


def load_pickle(filepath):
Expand Down
18 changes: 0 additions & 18 deletions pyensembl/ensembl_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,24 +95,6 @@ class EnsemblRelease(Genome):
cache layouts remain independent of the new assembly metadata.
"""

@classmethod
def normalize_init_values(cls, release, species, server):
"""
Normalizes the arguments which uniquely specify an EnsemblRelease
genome.
"""
release = normalize_release(release)
species = check_species_object(species)
if is_dated_release(release):
# Neither legacy server hosts dated releases.
if server in (None, ENSEMBL_FTP_SERVER, ENSEMBL_GENOMES_FTP_SERVER):
server = ENSEMBL_PLATFORM_FTP_SERVER
elif server is None or server == ENSEMBL_FTP_SERVER:
# Promote to the Ensembl Genomes server when the species lives
# there; otherwise keep the main Ensembl server.
server = _default_server_for_species(species)
return (release, species, server)

# Using a WeakValueDictionary instead of an ordinary dict to prevent a
# memory leak in cases where we test many different releases in sequence.
# When all the references to a particular EnsemblRelease die then that
Expand Down
2 changes: 1 addition & 1 deletion pyensembl/version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "2.34.6"
__version__ = "2.34.7"

def print_version():
print(f"v{__version__}")
Expand Down
50 changes: 0 additions & 50 deletions scripts/benchmark_gtf_indexing.py

This file was deleted.

61 changes: 0 additions & 61 deletions tasks/cli-error-handling-plan.md

This file was deleted.

76 changes: 0 additions & 76 deletions tasks/data-management.md

This file was deleted.

41 changes: 0 additions & 41 deletions tasks/datacache-recovery-integration-plan.md

This file was deleted.

44 changes: 0 additions & 44 deletions tasks/dated-dna-sharing-plan.md

This file was deleted.

Loading
Loading