<filename>runs/training/ae_classify_class_balance_v02/merge_train_test_data.py
from genEM3.util.path import get_data_dir
from genEM3.data.wkwdata import WkwData
import os

# Test concatenating jsons
test_json_path = os.path.join(get_data_dir(), 'test_data_three_bboxes.json') 
train_json_path = os.path.join(get_data_dir(), 'debris_clean_added_bboxes2_wiggle_datasource.json')
# Concatenate the test and training data sets
output_name = os.path.join
all_ds = WkwData.concat_datasources([train_json_path, test_json_path], os.path.join(get_data_dir(), 'train_test_combined.json'))
assert len(all_ds) == len(WkwData.datasources_from_json(test_json_path))+len(WkwData.datasources_from_json(train_json_path))

<filename>runs/training/ae_classify_class_balance_v02/merge_train_test_data.py
from genEM3.util.path import get_data_dir
from genEM3.data.wkwdata import WkwData
import os

# Test concatenating jsons
test_json_path = os.path.join(get_data_dir(), 'test_data_three_bboxes.json') 
train_json_path = os.path.join(get_data_dir(), 'debris_clean_added_bboxes2_wiggle_datasource.json')
# Concatenate the test and training data sets
output_name = os.path.join
all_ds = WkwData.concat_datasources([train_json_path, test_json_path], os.path.join(get_data_dir(), 'train_test_combined.json'))
assert len(all_ds) == len(WkwData.datasources_from_json(test_json_path))+len(WkwData.datasources_from_json(train_json_path))

# Test concatenating jsons # Concatenate the test and training data sets