A state district court judge has ruled against the New Mexico Public Education Department on the requirement of 180 days of classroom learning.