diff options
author | jfalkenhagen <jfalkenhagen@uos.de> | 2020-08-14 15:52:58 +0200 |
---|---|---|
committer | jfalkenhagen <jfalkenhagen@uos.de> | 2020-08-14 15:52:58 +0200 |
commit | 91a42d937a0a5e50d5ac2e6369d26b23146f15e2 (patch) | |
tree | be4d0f0c172e0f7865d2f933ef4dbbd10071df11 /bin | |
parent | 98de5d25ce583b285965e6fd8c79ab74d3bb6db3 (diff) |
bin/ProofOfConceptPELT: better nameing for result file
Diffstat (limited to 'bin')
-rw-r--r-- | bin/Proof_Of_Concept_PELT.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/Proof_Of_Concept_PELT.py b/bin/Proof_Of_Concept_PELT.py index cba7009..605ed7e 100644 --- a/bin/Proof_Of_Concept_PELT.py +++ b/bin/Proof_Of_Concept_PELT.py @@ -600,7 +600,7 @@ if __name__ == '__main__': "\nThe script will not run to the end properly." "\nNo final parametrization will be done.") from_cache = True - + big_state_name = configurations[0]['name'] if None in (by_param_file, by_name_file, param_names_file): state_durations_by_config = [] state_consumptions_by_config = [] @@ -1034,7 +1034,7 @@ if __name__ == '__main__': print_warning("Fitting(duration) for state " + state_name + " was not succesful!") new_fit_res_pow_dict[state_name] = combined_fit_power new_fit_res_dur_dict[state_name] = combined_fit_duration - result_loc = os.path.join(filepath, "result.txt") + result_loc = os.path.join(filepath, "result" + big_state_name + ".txt") with open(result_loc, "w") as f: f.write("Resulting Sequence: " + str(resulting_sequence)) f.write("\n\n") |