Skip to content

Conversation

@scizen9
Copy link
Contributor

@scizen9 scizen9 commented Apr 4, 2025

Added code to report an empty state or error out on multiple changes in state.

# Tracer()()
return

def state_empty(sstr):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggest we start modernising just a little. This should work with anything > python 3.5

def state_empty(sstr: str) -> bool:

etc

statestring += "%d,0," % (UniqueStateArr[ii, jj_level])
statestring = statestring[:-1] + '"'
if state_empty(statestring):
print("Empty state: %d" % ii)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these look like many functions almost identical can we refactor?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need a plan for refactoring the entire repository. This PR was made only to fix the specific problem in Issue #27. I cannot guarantee that the refactoring you are requesting would be done in a timely manner.

@scizen9
Copy link
Contributor Author

scizen9 commented Nov 25, 2025

I am fairly sure that development has move beyond this. Closing.

@scizen9 scizen9 closed this Nov 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants