Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
)
if method == 'DRG':
reduced_model = run_drg(
model_file, ignition_conditions, psr_conditions, flame_conditions,
error_limit, target_species, safe_species, phase_name=phase_name,
threshold_upper=upper_threshold, num_threads=num_threads, path=path
)
elif method == 'DRGEP':
reduced_model = run_drgep(
model_file, ignition_conditions, psr_conditions, flame_conditions,
error_limit, target_species, safe_species, phase_name=phase_name,
threshold_upper=upper_threshold, num_threads=num_threads, path=path
)
elif method == 'PFA':
reduced_model = run_pfa(
model_file, ignition_conditions, psr_conditions, flame_conditions,
error_limit, target_species, safe_species, phase_name=phase_name,
num_threads=num_threads, path=path
)
error = 0.0
limbo_species = []
if method in ['DRG', 'DRGEP', 'PFA']:
model_file = reduced_model.filename
error = reduced_model.error
limbo_species = reduced_model.limbo_species
if run_sensitivity_analysis:
if not sensitivity_type:
sensitivity_type = 'greedy'