Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions higgsfield/internal/experiment/params.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class Param:
required: bool = False
type: Optional[Type] = None
options: Optional[Tuple[Any, ...]] = None

def __init__(self, **kwargs):
self.__dict__.update(kwargs)

Expand Down Expand Up @@ -130,9 +130,8 @@ def wrap_brackets(s: str) -> str:


def remove_trailing_yaml(s: str) -> str:
trailing_yaml = "\n...\n"
if s.endswith(trailing_yaml):
return s[: -len(trailing_yaml)]
if s.endswith("\n...\n"):
return s[:-5]
return s


Expand Down