Skip to content

Commit 0a4a16b

Browse files
authored
Merge pull request #58 from SpeysideHEP/bugfix
Issue with text search/modification
2 parents b859e7f + c6d8e83 commit 0a4a16b

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

.zenodo.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"description": "smooth inference for reinterpretation studies",
33
"license": "MIT",
4-
"title": "SpeysideHEP/spey: v0.2.5",
5-
"version": "v0.2.5",
4+
"title": "SpeysideHEP/spey: v0.2.6",
5+
"version": "v0.2.6",
66
"upload_type": "software",
77
"creators": [
88
{
@@ -31,7 +31,7 @@
3131
},
3232
{
3333
"scheme": "url",
34-
"identifier": "https://github.com/SpeysideHEP/spey/tree/v0.2.5",
34+
"identifier": "https://github.com/SpeysideHEP/spey/tree/v0.2.6",
3535
"relation": "isSupplementTo"
3636
},
3737
{

src/spey/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -372,8 +372,9 @@ def cite() -> List[str]:
372372
try:
373373
arxiv = get_bibtex("inspire/arxiv", "2307.06996")
374374
zenodo = get_bibtex("zenodo", "10156353")
375-
linker = re.search("@software{(.+?),\n", zenodo).group(1)
376-
zenodo = zenodo.replace(linker, "spey_zenodo")
375+
linker = re.search("@software{(.+?),\n", zenodo)
376+
if linker is not None:
377+
zenodo = zenodo.replace(linker.group(1), "spey_zenodo")
377378
return arxiv + "\n\n" + zenodo
378379
except ConnectionError as err:
379380
log.error("Can not connect to the internet. Please check your connection.")

src/spey/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
"""Version number (major.minor.patch[-label])"""
22

3-
__version__ = "0.2.5"
3+
__version__ = "0.2.6-beta1"

0 commit comments

Comments
 (0)