Skip to content

Commit 0182b2a

Browse files
committed
Fix version number; document try/except block
1 parent 6a8b30b commit 0182b2a

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

plannotate/bokeh_plot.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,9 +341,11 @@ def get_bokeh(df, linear=False):
341341
df = df.merge(orient, on="Type", how="left")
342342
df["Type"] = df["Type"].str.replace("_", " ")
343343
try:
344+
# Opt in to future default behavior for type handling; only available in Python 3.11+
344345
with pd.option_context('future.no_silent_downcasting', True):
345346
df["has_orientation"] = df["has_orientation"].fillna(value=False).infer_objects()
346347
except pd.errors.OptionError:
348+
# Kept for Python 3.10 compatibility, this whole try/except block can be simplified when 3.10 support is no longer needed
347349
df["has_orientation"] = df["has_orientation"].fillna(value=False).infer_objects()
348350

349351
df[

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "plannotate"
3-
version = "1.2.5.dev"
3+
version = "1.2.5"
44
description = "Webserver and command line tool for annotating engineered plasmids"
55
readme = "README.md"
66
requires-python = ">=3.10,<3.14"

0 commit comments

Comments
 (0)