First thing I'd do is allow it to idle in gear with the wheels blocked and ebrake on. Sometimes it can take up to 30 minutes for a car to relearn idle.

Being that your battery went very low, it's possible a sensor or pcm may have fried, although that's less common. Most likely the car is merely pissed at you for not swapping the alt in the parking lot at the store.