<commit_before># '''CONCEPT - Connecting District Energy and Power Systems in Future Singaporean New Towns
Electric and Thermal Grid Planning:

1. Create a folder `scenario\inputs\electric_networks` and copy the `electric_line_data.csv` into that folder
   The file is present in `cea\optimization\flexibility_model\electric_and_thermal_grid_planning\electric_line_data.csv`

2. Run the `cea\optimization\flexibility_model\electric_and_thermal_grid_planning\electrical_thermal_optimization_main.py`

3. The outputs are saved in `scenario\outputs\electrical_and_thermal_network\optimization`

4. The checkpoints are saved in `scenario\outputs\electrical_and_thermal_network\optimization\master`

5. The individuals generated are saved in `scenario\outputs\electrical_and_thermal_network\optimization\slave\geneneration_number`

6. All the individuals of a generation are saved in `generation_number_individuals`. This has the columns as follows:
   
   - generation
   - individual
   - Buildings connected to the DCN or not (for all the buildings in the scenario)
   - CAPEX total
   - Opex total<commit_msg>minor modifications<commit_after># '''CONCEPT - Connecting District Energy and Power Systems in Future Singaporean New Towns
Electric and Thermal Grid Planning:

1. Create a folder `scenario\inputs\electric_networks` and copy the `electric_line_data.csv` into that folder
   The file is present in `cea\optimization\flexibility_model\electric_and_thermal_grid_planning\electric_line_data.csv`

2. Run the `cea\optimization\flexibility_model\electric_and_thermal_grid_planning\electrical_thermal_optimization_main.py`

3. The outputs are saved in `scenario\outputs\electrical_and_thermal_network\optimization`

4. The checkpoints are saved in `scenario\outputs\electrical_and_thermal_network\optimization\master`

5. The individuals generated are saved in `scenario\outputs\electrical_and_thermal_network\optimization\slave\geneneration_number`

6. All the individuals of a generation are saved in `generation_number_individuals`. This has the columns as follows:
   
   - generation
   - individual
   - Buildings connected to the DCN or not (for all the buildings in the scenario)
   - CAPEX total
   - Opex total
   
   
7. The scripts also generate plots corresponding to the networks on streets in each `generation` folder
{'fraction_non_alphanumeric': 0.05698371893744644, 'fraction_numerical': 0.005569837189374464, 'mean_word_length': 5.362397820163488, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1376483', 'n_tokens_mistral': 687, 'n_tokens_neox': 647, 'n_words': 214}