Skip to content

Commit 450d100

Browse files
committed
undo explicit loop length fix
1 parent d145179 commit 450d100

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

synthesizAR/interfaces/hydrad/hydrad.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,11 @@ def _map_strand_to_config_dict(self, loop):
9292
config = copy.deepcopy(self.base_config)
9393
# NOTE: Avoids a bug in HYDRAD where seg faults can arise due to inconsistencies between max cell
9494
# widths and minimum number of cells
95-
loop_length = np.round(loop.length.to('Mm'))
96-
config['general']['loop_length'] = loop_length
97-
config['initial_conditions']['heating_location'] = loop_length / 2
95+
config['general']['loop_length'] = loop.length
96+
config['initial_conditions']['heating_location'] = loop.length / 2
9897
if self.maximum_chromosphere_ratio:
9998
config['general']['footpoint_height'] = min(
100-
config['general']['footpoint_height'], self.maximum_chromosphere_ratio * loop_length / 2)
99+
config['general']['footpoint_height'], self.maximum_chromosphere_ratio * loop.length / 2)
101100
if self.use_gravity:
102101
config['general']['poly_fit_gravity'] = self.configure_gravity_fit(loop)
103102
if self.use_magnetic_field:

0 commit comments

Comments
 (0)