Skip to content

Commit

Permalink
Fixed bug in malpolon.data.logging.str_object which crashed training …
Browse files Browse the repository at this point in the history
…loop.
  • Loading branch information
tlarcher committed Feb 26, 2024
1 parent bc629b8 commit d034c30
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion malpolon/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class name and attributes (both name and values)
filtered_attributes.append((key, val))

formatted_attributes = ", ".join(
map(lambda x: f"{*x,}={filtered_attributes}")
map(lambda x: f"{x[0]}={x[1]}", filtered_attributes)
)
return f"{class_name}(\n {formatted_attributes}\n)".format(class_name, formatted_attributes)

Expand Down
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from setuptools import setup, find_packages
from setuptools import find_packages, setup

setup(name="malpolon",
version="1.0.0",
description="Malpolon v1.0.0",
version="1.0.2",
description="Malpolon v1.0.2",
author="Theo Larcher, Titouan Lorieul",
author_email="[email protected], [email protected]",
url="https://github.com/plantnet/malpolon",
Expand Down

0 comments on commit d034c30

Please sign in to comment.