Skip to content

Commit 1dadbae

Browse files
GMinoruyGui-FernandesBR
authored andcommitted
ENH: adds Docstring to the function
1 parent 6339eb1 commit 1dadbae

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

rocketpy/simulation/monte_carlo.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -590,6 +590,20 @@ def __evaluate_flight_outputs(self, flight, sim_idx):
590590
)
591591

592592
def export_results(self, output_filename, output_format):
593+
"""Converts the default Monte Carlo .txt output to .cvs or .json file
594+
depending on the user's choice
595+
596+
Parameters
597+
----------
598+
output_filename : str
599+
Name of the file in which the converted data will be saved
600+
output_format : str
601+
Format of the output file
602+
603+
Returns
604+
-------
605+
None
606+
"""
593607
txt_data = []
594608
with open(f"{self.filename}.outputs.txt", "r", encoding="utf-8") as f:
595609
for line in f:

0 commit comments

Comments
 (0)