Skip to content

It seems that there is a bug to write the lobsterin file #3437

Closed
@RedStar-Iron

Description

@RedStar-Iron

if key.lower() in [element.lower() for element in Lobsterin.FLOAT_KEYWORDS]:
f.write(f"{key} {self.get(key)}\n")

key in self.get(key) should be lower, then it can be found in Lobsterin.FLOAT_KEYWORDS.

And the cohpsteps might need to be a positive integer.

So I just revised it to:

if key.lower() == "cohpsteps":
    f.write(f"{key} {int(self.get(key.lower()))}\n")
else:
    f.write(f"{key} {self.get(key.lower())}\n")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions