Skip to content

Commit

Permalink
finally find where the dimensionality originates!
Browse files Browse the repository at this point in the history
  • Loading branch information
DeerWhale committed Jan 28, 2024
1 parent 2c34884 commit 79122de
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tardis/model/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,9 @@ def dilution_factor(self):
@dilution_factor.setter
def dilution_factor(self, new_dilution_factor):
if len(new_dilution_factor) == self.no_of_shells:
self.radiation_field_state.dilution_factor = new_dilution_factor
self.radiation_field_state.dilution_factor[
self.geometry.v_inner_boundary_index : self.geometry.v_outer_boundary_index
] = new_dilution_factor
else:
raise ValueError(
"Trying to set dilution_factor for unmatching number"
Expand All @@ -149,7 +151,9 @@ def t_radiative(self):
@t_radiative.setter
def t_radiative(self, new_t_radiative):
if len(new_t_radiative) == self.no_of_shells:
self.radiation_field_state.t_radiative = new_t_radiative
self.radiation_field_state.t_radiative[
self.geometry.v_inner_boundary_index : self.geometry.v_outer_boundary_index
] = new_t_radiative
else:
raise ValueError(
"Trying to set t_radiative for different number of shells."
Expand Down

0 comments on commit 79122de

Please sign in to comment.