Moving back into rental depreciating question

Moving back into rental. Replacing carpets that were in house during tenants. Can I depreciate this on the year I claim the partial year of rent? Or no since I am moving back in? Thanks!