Skip to content

Comments

chore: deprecate setLatPar and setLatBase method#163

Merged
sbillinge merged 3 commits intodiffpy:v3.4.0from
stevenhua0320:deprecate-lattice
Feb 23, 2026
Merged

chore: deprecate setLatPar and setLatBase method#163
sbillinge merged 3 commits intodiffpy:v3.4.0from
stevenhua0320:deprecate-lattice

Conversation

@stevenhua0320
Copy link
Contributor

@sbillinge ready to review

@codecov
Copy link

codecov bot commented Feb 22, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.99%. Comparing base (9c26c25) to head (74683b6).
⚠️ Report is 5 commits behind head on v3.4.0.

Additional details and impacted files
@@            Coverage Diff             @@
##           v3.4.0     #163      +/-   ##
==========================================
+ Coverage   98.97%   98.99%   +0.01%     
==========================================
  Files          13       13              
  Lines        1951     1988      +37     
==========================================
+ Hits         1931     1968      +37     
  Misses         20       20              
Files with missing lines Coverage Δ
tests/test_lattice.py 99.57% <100.00%> (+0.07%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Contributor

@sbillinge sbillinge left a comment

Choose a reason for hiding this comment

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

please see comment

return

def setLatPar(
def set_lat_par(
Copy link
Contributor

Choose a reason for hiding this comment

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

shall we call this set_latt_parms to make it clearer?

"""
return self.set_lat_base(base)

def set_lat_base(self, base):
Copy link
Contributor

Choose a reason for hiding this comment

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

I am not sure what this is tbh, but if we can figure it out, can we give it a better name?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This method sets a new base vector and update the cell length and angles according to the new base. I suggest making it set_new_latt_base_vec maybe?

@sbillinge sbillinge merged commit a7d43a1 into diffpy:v3.4.0 Feb 23, 2026
6 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