Skip to content

Commit

Permalink
Added check incase output is dir
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisgKent committed Nov 6, 2024
1 parent d8517da commit df51958
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bed2idt/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.2.0"
__version__ = "1.2.1"
6 changes: 4 additions & 2 deletions bed2idt/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def common(
pass


@app.command()
@app.command(no_args_is_help=True)
def plates(
bedfile: Annotated[
pathlib.Path,
Expand All @@ -198,6 +198,7 @@ def plates(
help="The output location of the file. Defaults to output.xlsx",
writable=True,
callback=append_xlsx,
dir_okay=False,
),
] = pathlib.Path("output.xlsx"),
splitby: Annotated[
Expand Down Expand Up @@ -235,7 +236,7 @@ def plates(
plates_go(primer_list, workbook, splitby, fillby, plateprefix, randomise)


@app.command()
@app.command(no_args_is_help=True)
def tubes(
bedfile: Annotated[
pathlib.Path, typer.Argument(help="The path to the bed file", readable=True)
Expand All @@ -246,6 +247,7 @@ def tubes(
help="The output location of the file. Defaults to output.xlsx",
writable=True,
callback=append_xlsx,
dir_okay=False,
),
] = pathlib.Path("output.xlsx"),
scale: Annotated[
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "bed2idt"
version = "1.2.0"
version = "1.2.1"
description = "Converts primer.bed files to IDT ordering templates"
authors = ["ChrisKent <[email protected]>"]
license = "CC-BY-SA-4.0"
Expand Down

0 comments on commit df51958

Please sign in to comment.