Skip to content

enh: consistent medium and viscosity model names, tooltips - #254

Merged
paulmueller merged 1 commit into
DC-analysis:mainfrom
paulmueller-agent:fix/ui-consistency
Nov 20, 2026
Merged

paulmueller merged 1 commit into
DC-analysis:mainfrom
paulmueller-agent:fix/ui-consistency

Conversation

@paulmueller-agent

Copy link
Copy Markdown
Contributor

Follow-up to #253 (open points of the docs/UI review).

Medium names (Young's modulus)

  • The Dataset tab listed all aliases of KNOWN_MEDIA (e.g. "0.5% MC-PBS", "0.50% MC-PBS", "cellcarrier", ...). It now lists only the media names used by dclab (SAME_MEDIA keys), with the product name as a hint for the MC-PBS media: "0.49% MC-PBS (CellCarrier)", "0.59% MC-PBS (CellCarrierB)", "0.83% MC-PBS", "water".
  • If the medium is defined in the metadata (combo box disabled), the alias from the metadata is kept as item data and shown with the preferred name, e.g. "CellCarrier B" -> "0.59% MC-PBS (CellCarrierB)".
  • Sessions from older versions that stored an alias (e.g. "CellCarrier") as user-selected medium are mapped to the preferred name.
  • The bulk action dialog uses the same names (shared helper defaults.get_emodulus_medium_name). In its "medium not changed" warning the list is now "- dataset: medium" to avoid nested brackets.

Viscosity model names

  • The Dataset tab ("Herold (2017)" first), the bulk action ("buyukurganci-2022"/"herold-2017") and the preferences used different labels/orders. All three now use defaults.EMODULUS_VISC_MODELS ("Buyukurganci (2022)", "Herold (2017)").

Tooltips

  • Quick View polygon button: "Polygon filters"
  • Isoelasticity LUT selection in the Quick View and in the Plot tab: "Look-up table for the isoelasticity lines"

Other

  • fix: the "What are encrypted tokens?" link in the DCOR preferences was not clickable (missing openExternalLinks)
  • docs: removed the QtCreator 8 note from the developer docs; Young's modulus guide uses the new medium/model names; make_scrots_qg_emodulus.py selects "0.49% MC-PBS"

Screenshots that show the medium combo box (qg_emodulus_*.png, ui_ana_slot.png) can be regenerated.

Tests: new tests for the medium/viscosity model names (Dataset tab, metadata alias, session alias) and the bulk dialog; flake8 clean, sphinx -n without warnings, 155 passed, 1 skipped.

🤖 Generated with Claude Code

- list the Young's modulus media with the names used by dclab and
  the product name as a hint (e.g. "0.49% MC-PBS (CellCarrier)");
  aliases from older sessions are mapped to the preferred names
- use the same viscosity model names in the Dataset tab, bulk
  action, and preferences
- tooltips for the Quick View polygon button and the isoelastics
  LUT selection
- fix: make the encrypted token link in the preferences clickable
- docs: remove the QtCreator version requirement

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@paulmueller
paulmueller merged commit a6045de into DC-analysis:main Nov 20, 2026
3 checks passed
@codecov

codecov Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 77.08%. Comparing base (532ccba) to head (1a41b1d).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #254   +/-   ##
=======================================
  Coverage   77.07%   77.08%           
=======================================
  Files          76       76           
  Lines        8582     8583    +1     
=======================================
+ Hits         6615     6616    +1     
  Misses       1967     1967           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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