FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Rename PDF-specific smear option to `--smear-pdf` by Sparks29032 · Pull Request #220 · diffpy/diffpy.morph · GitHub

Repository navigation

Rename PDF-specific smear option to --smear-pdf - #220

Merged
sbillinge merged 5 commits into
diffpy:mainfrom
Sparks29032:smear-update
Jun 24, 2025
Merged

sbillinge merged 5 commits into
diffpy:mainfrom
Sparks29032:smear-update

Conversation

Copy link
Copy Markdown
Collaborator

Closes #210.

The --smear-pdf option first converts the PDF to an RDF before applying the smear. The --smear option does not do such transformation. If both are enabled, the --smear-pdf option takes precedence.

codecov Bot commented Jun 23, 2025 •
edited
Loading

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.44%. Comparing base (ea41b24) to head (69d45ee).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #220      +/-   ##
==========================================
+ Coverage   97.36%   97.44%   +0.08%     
==========================================
  Files          20       20              
  Lines         947      978      +31     
==========================================
+ Hits          922      953      +31     
  Misses         25       25              
Files with missing lines Coverage Δ
tests/test_morphapp.py 99.26% <100.00%> (+0.21%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown
Contributor

@Sparks29032 I am afraid this one has a conflict.

Copy link
Copy Markdown
Collaborator Author

@Sparks29032 I am afraid this one has a conflict.

Ah, probably from me fixing a typo on another PR. Should be resolved now.

Comment thread tests/test_morphapp.py
[
"--smear",
"100",
"--smear-pdf",

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

This code block also tests the default behavior if a user inputs both morphs. The pdf smear takes precedence.

sbillinge merged commit a8f53ae into diffpy:main Jun 24, 2025

Copy link
Copy Markdown
Contributor

I am merging this. I had one comment which is to please make all new tests as pytest tests, not unittest tests. We would gradually over time like to migrate back to pytest tests entirely, but at least, let's not make new unittest tests.

Sparks29032 commented Jun 24, 2025 •
edited
Loading

Copy link
Copy Markdown
Collaborator Author

Thanks for merging! I thought these tests were already migrated from unittest to Pytest in #83. These tests seem to follow the Pytest documentation.

Copy link
Copy Markdown
Contributor

Thanks for merging! I thought these tests were already migrated from unittest to Pytest in #83. These tests seem to follow the Pytest documentation.

maybe I didn't check well enough. It looked as if it was indented and part of a class and not a standalone function.

Sparks29032 commented Jun 24, 2025 •
edited
Loading

Copy link
Copy Markdown
Collaborator Author

They are classes, but I thought this is supported and encouraged by https://docs.pytest.org/en/stable/getting-started.html. I think I need the python tests presentation lol.

Copy link
Copy Markdown
Contributor

They are classes, but I thought this is supported and encouraged by https://docs.pytest.org/en/stable/getting-started.html. I think I need the python tests presentation lol.

Ah, I see. I don't really see any benefit unless tests are sharing a bunch of code or marks, but mostly I just assumed they were unittest tests (which are typically the only tests we write in classes.....)

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

Remove PDF-dependence on smear morph

2 participants


Back | FazBrowse Home | New Git URL