Skip to content

fix: corrected mu vs muD usage, remove packing fraction option #198

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

yucongalicechen
Copy link
Collaborator

@yucongalicechen yucongalicechen commented Jul 8, 2025

closes #188, closes #187

Here's a screenshot of the GUI:
1

From the screenshot here I think I like keeping all chemical info in one argument instead of separating it like -s NaCl -e 10 -d 1.5 -c 1.0 for composition, energy, density, and diameter. I can separate arguments for "getmud" subcommand though, if this is easier for CLI users. Thoughts?

@sbillinge ready for review.

"Specify the chemical formula, incident x-ray energy (in keV), "
"and packing fraction (0 to 1), " + theoretical_mud_hmsg_suffix
"sample mass density (in g/cm^3), "
"and capillary diameter (in mm) "
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Adding capillary diameter as a requirement

Copy link

codecov bot commented Jul 8, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.31%. Comparing base (d61ee4e) to head (6f50e0c).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #198   +/-   ##
=======================================
  Coverage   99.31%   99.31%           
=======================================
  Files           5        5           
  Lines         292      292           
=======================================
  Hits          290      290           
  Misses          2        2           
Files with missing lines Coverage Δ
tests/test_tools.py 98.84% <ø> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

args.theoretical_from_density
def _set_theoretical_mud(args):
"""Theoretical estimation of muD from sample composition, energy, sample
mass density, and capillary diameter."""
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Remove packing fraction as an option, add capillary diameter

@sbillinge
Copy link
Contributor

please see my comment in #187. I am honestly a bit confused as it has been some time since we worked on this and there were many many different options. It might be helpful to have a quick meeting, and in preperation for that meeting try and plot out some kind of block-diagram that shows the different flows of what people know, how they will interact with the program, and what functions get run in each case.

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.

fix: missing multiplication by capillary diameter in set_mud feat: Remove --theoretical-from-packing argument option for muD computation
2 participants