Skip to content

Commit a80b41b

Browse files
ENH: Let the user solve the csv file error instead of muting the error
Co-authored-by: Gui-FernandesBR <63590233+Gui-FernandesBR@users.noreply.github.com>
1 parent 91d3340 commit a80b41b

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

rocketpy/rocket/aero_surface/generic_surface.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -409,10 +409,7 @@ def __load_csv(self, file_path, coeff_name):
409409

410410
def _create_regular_grid_function(csv_source, variable_names):
411411
"""Create a regular-grid Function when CSV samples form a full grid."""
412-
try:
413-
data = np.loadtxt(csv_source, delimiter=",", skiprows=1, dtype=float)
414-
except (OSError, ValueError):
415-
return None
412+
data = np.loadtxt(csv_source, delimiter=",", skiprows=1, dtype=float)
416413

417414
data = np.atleast_2d(data)
418415
expected_columns = len(variable_names) + 1

0 commit comments

Comments
 (0)