Skip to content

Instantly share code, notes, and snippets.

View AlexSartori's full-sized avatar
💪
Smadonno ma non mollo

Alescs AlexSartori

💪
Smadonno ma non mollo
View GitHub Profile
@AlexSartori
AlexSartori / EnergyPLAN_output_parser.py
Last active January 3, 2023 15:17
Python script to parse EnergyPLAN's output data and convert it to JSON
#!/usr/bin/env python3
import re, sys, json
def print_err(msg):
print(' \u001b[31m✖\u001b[0m - ' + msg)
def print_wrn(msg):
print(' \u001b[33m!\u001b[0m - ' + msg)