What is the sampling rate in this case?
For the sine wave $\sin ((\pi/4)t)$ , the minimum sampling frequency is greater than 1/4 Hz. That amounts to a sampling period less than 4 seconds. In your case, sampling period of 1 second is therefore a valid choice.