Skip to content

Commit

Permalink
Switch default output format to text
Browse files Browse the repository at this point in the history
  • Loading branch information
willGraham01 committed Feb 6, 2024
1 parent eed6a2d commit 17c51bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion brainglobe_utils/citation/bibtex_fmt.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def validate_citation_key(cls, key: str) -> bool:
"""
bad_characters = key.lower()
for valid_character in ascii_letters + digits + "_-:":
bad_characters = bad_characters.replace(char, "")
bad_characters = bad_characters.replace(valid_character, "")

if bad_characters:
# Some characters in the string provided are not permitted,
Expand Down
4 changes: 2 additions & 2 deletions brainglobe_utils/citation/cite.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

def cite(
*tools: str,
format: Literal["bibtex", "text"] = "bibtex",
format: Literal["bibtex", "text"] = "text",
outfile: Path = None,
cite_software: bool = False,
newline_separations: int = 2,
Expand Down Expand Up @@ -259,7 +259,7 @@ def cli() -> None:
raise RuntimeError(f"Output format {fmt} is not supported.")
elif fmt is None:
# Use default value as this argument was also not provided
fmt = "bibtex"
fmt = "text"
else:
# Output file provided - resolve path based on OS.
output_file = Path(output_file)
Expand Down

0 comments on commit 17c51bb

Please sign in to comment.