Skip to content

Commit

Permalink
TMP: requires modification
Browse files Browse the repository at this point in the history
  • Loading branch information
alongd committed Aug 13, 2023
1 parent b1f7657 commit 8cc2d23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions t3/simulate/rmg_constantTP.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ def get_species_concentration_lists_from_ranged_params(self) -> List[List[dict]]
spc_1_vals = get_values_within_range(value_range=self.rmg['species'][spc_indices_w_ranges[1]]['concentration'],
num=self.t3['options']['num_sa_per_concentration_range'])
for val_0, val_1 in zip(spc_0_vals, spc_1_vals[::-1]):
new_species_list = species_list
new_species_list = species_list_wo_ranges # Not final - needs modification
new_species_list.append({'label': self.rmg['species'][spc_indices_w_ranges[0]]['label'],
'concentration': val_0})
new_species_list.append({'label': self.rmg['species'][spc_indices_w_ranges[1]]['label'],
Expand All @@ -378,7 +378,7 @@ def get_species_concentration_lists_from_ranged_params(self) -> List[List[dict]]
# 4. Combinations (products)
else:
for vals in itertools.product(*species_vals):
new_species_list = species_list
new_species_list = species_list_wo_ranges # Not final - needs modification
for i, val in enumerate(vals):
new_species_list.append({'label': self.rmg['species'][spc_indices_w_ranges[i]]['label'],
'concentration': val})
Expand Down

0 comments on commit 8cc2d23

Please sign in to comment.