modified log_temperature.py