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

add target concentrations in notebook display of quantitate methods #54

Open
wants to merge 1 commit into
base: v2
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions src/alhambra/quantitate.py
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,12 @@ def display_hydrate_and_measure_conc_and_dilute_from_specs(
table = tabulate(table_list, headers=headers, tablefmt="pipe", floatfmt=".2f")
from alhambra.mixes import _format_title

raw_title = "Initial measured concentrations and subsequent dilution volumes"
target_conc_high = parse_conc(target_conc_high)
target_conc_low = parse_conc(target_conc_low)
raw_title = (
f"Measured concentrations after targeting {target_conc_high}, "
f"subsequent dilution volumes targeting {target_conc_low}"
)
title = _format_title(raw_title, level=2, tablefmt="pipe")
display(Markdown(title + "\n\n" + table))

Expand Down Expand Up @@ -725,7 +730,8 @@ def display_hydrate_from_specs(
table = tabulate(table_list, headers=headers, tablefmt="pipe", floatfmt=".2f")
from alhambra.mixes import _format_title

raw_title = "Initial hydration volumes"
target_conc = parse_conc(target_conc)
raw_title = f"Initial hydration volumes targeting {target_conc}"
title = _format_title(raw_title, level=2, tablefmt="pipe")
display(Markdown(title + "\n\n" + table))

Expand Down