<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def register_measurements(self, end, rows, between, refresh_presision):
 		"""Register the measurements if it has measurements and close the configuration, if it hasen't got measurements clean the temporal file on disk. 			Keyword arguments: 			f -- open memory file 			end -- datetime of the moment when the configuration go inactive 			between -- time between integral_measurements in seconds 			refresh_presision -- time between sensor values that compose the integral_measurements 			"""

		if not self.end and len(rows) > 0:
			self.append_rows(rows, between, refresh_presision)
			self.go_inactive(end)
			self.save()