@@ -110,34 +110,6 @@ def get_module(self):
110
110
if model .cylindrical_parameter ['z_max' ] is None :
111
111
model .cylindrical_parameter ['z_max' ] = model .parameter ['outer_radius' ]
112
112
113
- # Convert radius in various units
114
- if model .parameter ['grid_type' ] == 'octree' :
115
- model .tmp_parameter ['radius_x_m' ] = model .octree_parameter ['sidelength' ] / 2.
116
- model .tmp_parameter ['radius_y_m' ] = model .octree_parameter ['sidelength' ] / 2.
117
- elif model .parameter ['grid_type' ] == 'spherical' :
118
- model .tmp_parameter ['radius_x_m' ] = model .spherical_parameter ['outer_radius' ]
119
- model .tmp_parameter ['radius_y_m' ] = model .spherical_parameter ['outer_radius' ]
120
- elif model .parameter ['grid_type' ] == 'cylindrical' :
121
- model .tmp_parameter ['radius_x_m' ] = model .cylindrical_parameter ['outer_radius' ]
122
- model .tmp_parameter ['radius_y_m' ] = model .cylindrical_parameter ['outer_radius' ]
123
- else :
124
- raise ValueError ('Grid type not known!' )
125
-
126
- model .tmp_parameter ['radius_x_arcsec' ] = self .math .length_conv (
127
- model .tmp_parameter ['radius_x_m' ], 'arcsec' , model .parameter ['distance' ])
128
- model .tmp_parameter ['radius_y_arcsec' ] = self .math .length_conv (
129
- model .tmp_parameter ['radius_y_m' ], 'arcsec' , model .parameter ['distance' ])
130
- model .tmp_parameter ['radius_x_pc' ] = self .math .length_conv (
131
- model .tmp_parameter ['radius_x_m' ], 'pc' )
132
- model .tmp_parameter ['radius_y_pc' ] = self .math .length_conv (
133
- model .tmp_parameter ['radius_y_m' ], 'pc' )
134
- model .tmp_parameter ['radius_x_au' ] = self .math .length_conv (
135
- model .tmp_parameter ['radius_x_m' ], 'au' )
136
- model .tmp_parameter ['radius_y_au' ] = self .math .length_conv (
137
- model .tmp_parameter ['radius_y_m' ], 'au' )
138
- model .tmp_parameter ['radius_x_ae' ] = model .tmp_parameter ['radius_x_au' ]
139
- model .tmp_parameter ['radius_y_ae' ] = model .tmp_parameter ['radius_y_au' ]
140
-
141
113
return model
142
114
143
115
0 commit comments