Taste Testing Module
The Taste Testing Module provides tools for analyzing and comparing the flavor profiles of ingredients and cooked products in TomatoPy.
Basic Taste Analysis
Simple Taste Testing
from tomatopy import TasteTester
# Create a taste tester
tester = TasteTester()
# Analyze a basic ingredient
profile = tester.analyze(tomato)
# Get basic taste metrics
print(f"Sweetness: {profile.sweetness}")
print(f"Acidity: {profile.acidity}")
print(f"Umami: {profile.umami}")Comprehensive Analysis
# Get detailed taste profile
profile = tester.analyze(
ingredient,
depth="comprehensive",
include_aroma=True,
include_texture=True
)
# Access detailed metrics
print(f"Sweetness: {profile.sweetness}")
print(f"Acidity: {profile.acidity}")
print(f"Umami: {profile.umami}")
print(f"Aroma intensity: {profile.aroma.intensity}")
print(f"Texture score: {profile.texture.score}")Advanced Taste Analysis
Flavor Profile Comparison
Taste Balance Analysis
Aroma Analysis
Basic Aroma Testing
Detailed Aroma Analysis
Texture Analysis
Basic Texture Testing
Detailed Texture Analysis
Quality Assessment
Basic Quality Testing
Comprehensive Quality Assessment
Taste Profile Visualization
Basic Visualization
Advanced Visualization
Error Handling
Best Practices
Use Appropriate Analysis Depth
Validate Results
Handle Edge Cases
API Reference
Classes
TasteTester: Main taste testing classTasteProfile: Taste profile data classAromaProfile: Aroma profile data classTextureProfile: Texture profile data classQualityProfile: Quality profile data classTasteVisualizer: Visualization class
Methods
TasteTester Class
__init__()analyze(ingredient, **params)compare(ingredients, metrics)analyze_balance(ingredient)analyze_aroma(ingredient, **params)analyze_texture(ingredient, **params)assess_quality(ingredient, **params)visualize_profile(profile, **params)
Next Steps
Kitchen Hardware Interface - Control kitchen equipment
API Reference - Explore the full API
Tutorials - Learn advanced techniques
Last updated
Was this helpful?