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

Nick/pyttb utils improvement #353

Merged
merged 11 commits into from
Dec 13, 2024

Conversation

ntjohnson1
Copy link
Collaborator

@ntjohnson1 ntjohnson1 commented Dec 6, 2024

Solves #347
Also handles the [tenfun discussion]](#345 (reply in thread))
Additonally, enables ruff's enforcement of pydocstyle which should help the uniformity of our documentation. There are always documentation style improvements but I realized there were some methods we were just entirely missing docs one. (This is a single commit but if it is annoying to review can put it into a separate PR)

Resolves: #357 and #355 (the naming in the printing of the tensor will depend on #350)


📚 Documentation preview 📚: https://pyttb--353.org.readthedocs.build/en/353/

* Remove unneeded method
* Update examples/docs most places
* Mark remaining improvements
* Update doc strings for remaining utils
* Mostly adding periods, newlines, and imperitive phrasing
@ntjohnson1 ntjohnson1 marked this pull request as ready for review December 6, 2024 23:26
@ntjohnson1 ntjohnson1 requested a review from dmdunla December 6, 2024 23:26
@dmdunla
Copy link
Collaborator

dmdunla commented Dec 12, 2024

@ntjohnson1 Looks like the same conflicts (and maybe a couple more) are still in place for this PR. Since I broke the last conflict fix, I'll ask you to fix the conflicts when you get a chance. Thanks

@ntjohnson1
Copy link
Collaborator Author

I'll try to get to it tonight or tomorrow.

# Conflicts:
#	pyttb/export_data.py
#	pyttb/ktensor.py
#	pyttb/pyttb_utils.py
#	pyttb/sptensor.py
#	pyttb/sumtensor.py
#	pyttb/tenmat.py
#	pyttb/tensor.py
@ntjohnson1
Copy link
Collaborator Author

No problem Danny I usually telescope my PRs to stack them for review but didn't this time and conflicts were a pain. I'll go back to stacking them and describe the right order of merging for the future.

Copy link
Collaborator

@dmdunla dmdunla left a comment

Choose a reason for hiding this comment

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

Fixed all of the conflicts!

@dmdunla dmdunla merged commit 605dd28 into sandialabs:main Dec 13, 2024
9 checks passed
@ntjohnson1 ntjohnson1 deleted the nick/pyttb_utils_improvement branch December 13, 2024 02:08
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.

Collapse mode specification
2 participants