Notwithstanding any other provision of this code except to the extent otherwise provided under Section 39.053(g-3), for purposes of determining the performance of a school district, campus, or open-enrollment charter school under this chapter, a student ordered by a juvenile court into a residential program or facility operated by or under contract with the Texas Juvenile Justice Department, a juvenile board, or any other governmental entity or any student who is receiving treatment in a residential facility is not considered to be a student of the school district in which the program or facility is physically located or of an open-enrollment charter school, as applicable. The performance of such a student on an assessment instrument or other achievement indicator adopted under Section 39.053 or reporting indicator adopted under Section 39.301 shall be determined, reported, and considered separately from the performance of students attending a school of the district in which the program or facility is physically located or an open-enrollment charter school, as applicable.
Tex. Educ. Code § 39.055