From 91e35ee01d1ffb5904bc05b9d906f86b7170c8e0 Mon Sep 17 00:00:00 2001 From: Kazadhum Date: Mon, 15 Jul 2024 11:28:28 +0100 Subject: [PATCH] output file name fix #965 --- .../scripts/other_calibrations/copy_tfs_from_dataset.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/atom_evaluation/scripts/other_calibrations/copy_tfs_from_dataset.py b/atom_evaluation/scripts/other_calibrations/copy_tfs_from_dataset.py index ebbca933..fef50546 100755 --- a/atom_evaluation/scripts/other_calibrations/copy_tfs_from_dataset.py +++ b/atom_evaluation/scripts/other_calibrations/copy_tfs_from_dataset.py @@ -103,8 +103,7 @@ collection["transforms"][tf_name]["quat"] = selected_collection_quat collection["transforms"][tf_name]["trans"] = selected_collection_trans - - # Save results to a json file - filename_results_json = os.path.dirname(target_dataset_name) + '/' + 'dataset_tfs_copied.json' + base_file_name = target_dataset_name.split('/')[-1].split('.')[0] + filename_results_json = os.path.dirname(target_dataset_name) + '/' + base_file_name + '_tfs_copied.json' saveAtomDataset(filename_results_json, new_dataset, save_data_files=False)