Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vmat formatting 3/3 #553

Merged
merged 2 commits into from
Aug 15, 2024
Merged

Vmat formatting 3/3 #553

merged 2 commits into from
Aug 15, 2024

Conversation

Rosalbam1
Copy link
Contributor

No description provided.

Copy link
Collaborator

@avcopan avcopan left a comment

Choose a reason for hiding this comment

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

Nice work! Just a few small corrections in the comments.

def dummy_source_dict(zma, dir_: bool = True):
def dummy_source_dict(
zma: VMatrix, dir_: bool = True
) -> dict[int, int] | tuple[int, int]:
Copy link
Collaborator

Choose a reason for hiding this comment

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

This should be -> dict[int, int | tuple[int, int]] (always a dictionary, but the values can be either int or tuple[int, int]).

@@ -562,14 +555,12 @@ def set_name_matrix(vma, name_mat):


# # # names and naming
def rename(vma, name_dct):
def rename(vma: VMatrix, name_dct: dict[str, str]) -> VMatrix:
Copy link
Collaborator

Choose a reason for hiding this comment

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

For consistency, let's do name_dct: dict[Name, Name]

def add_atom(vma, symb, key_row, name_row=None, one_indexed=False):
def add_atom(
vma: VMatrix,
symb: str,
Copy link
Collaborator

Choose a reason for hiding this comment

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

For consistency, let's do symb: Symbol

@avcopan avcopan merged commit c2c649a into Auto-Mech:dev Aug 15, 2024
3 checks passed
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.

2 participants