Example #1
0
def limitedModesError(path,directory):
	res = sortedResolution(path)
	new_path = path + '/' + res[-1][0] + '/'
	simulation = sm.Simulation(new_path,directory)
	kick1 = rq.getKick(simulation)
	kick2 = rq.getKick(simulation,7)
	error = np.abs(kick1 - kick2)
	return error
Example #2
0
	def extrapolationError(self):
		new_path = self.path + '/' + self.res[-1][0] + '/'
		simulation1 = sm.Simulation(new_path,'Extrapolated_N2.dir')
		simulation2 = sm.Simulation(new_path,'Extrapolated_N3.dir')
		kick1 = rq.getKick(simulation1)
		kick2 = rq.getKick(simulation2)
		error = np.abs(kick1 - kick2)
		return error
Example #3
0
def limitedModesError(path, directory):
    res = sortedResolution(path)
    new_path = path + '/' + res[-1][0] + '/'
    simulation = sm.Simulation(new_path, directory)
    kick1 = rq.getKick(simulation)
    kick2 = rq.getKick(simulation, 7)
    error = np.abs(kick1 - kick2)
    return error
Example #4
0
 def extrapolationError(self):
     new_path = self.path + '/' + self.res[-1][0] + '/'
     simulation1 = sm.Simulation(new_path, 'Extrapolated_N2.dir')
     simulation2 = sm.Simulation(new_path, 'Extrapolated_N3.dir')
     kick1 = rq.getKick(simulation1)
     kick2 = rq.getKick(simulation2)
     error = np.abs(kick1 - kick2)
     return error
Example #5
0
def junkError(path, directory):
    res = sortedResolution(path)
    new_path = path + '/' + res[-1][0] + '/'
    simulation1 = sm.Simulation(new_path, directory)
    simulation2 = sm.Simulation(new_path, directory, relaxed=True)
    kick1 = rq.getKick(simulation1)
    kick2 = rq.getKick(simulation2)
    error = np.abs(kick1 - kick2)
    return error
Example #6
0
def extrapolationError(path, directory):
    res = sortedResolution(path)
    new_path = path + '/' + res[-1][0] + '/'
    simulation1 = sm.Simulation(new_path, 'Extrapolated_N2.dir')
    simulation2 = sm.Simulation(new_path, 'Extrapolated_N3.dir')
    kick1 = rq.getKick(simulation1)
    kick2 = rq.getKick(simulation2)
    error = np.abs(kick1 - kick2)
    return error
Example #7
0
def extrapolationError(path,directory):
	res = sortedResolution(path)
	new_path = path + '/' + res[-1][0] + '/'
	simulation1 = sm.Simulation(new_path,'Extrapolated_N2.dir')
	simulation2 = sm.Simulation(new_path,'Extrapolated_N3.dir')
	kick1 = rq.getKick(simulation1)
	kick2 = rq.getKick(simulation2)
	error = np.abs(kick1 - kick2)
	return error
Example #8
0
def junkError(path,directory):
	res = sortedResolution(path)
	new_path = path + '/' + res[-1][0] + '/'
	simulation1 = sm.Simulation(new_path,directory)
	simulation2 = sm.Simulation(new_path,directory, relaxed = True)
	kick1 = rq.getKick(simulation1)
	kick2 = rq.getKick(simulation2)
	error = np.abs(kick1 - kick2)
	return error
Example #9
0
def downSampleError(path,directory):
	res = sortedResolution(path)
	new_path = path + '/' + res[-1][0] + '/'
	simulation1 = sm.Simulation(new_path,directory)
	simulation2 = sm.Simulation(new_path,directory, relaxed=False, downsample = 2 )
	simulation3 = sm.Simulation(new_path,directory, relaxed=False, downsample = 4 )
	kick1 = rq.getKick(simulation1)
	kick2 = rq.getKick(simulation2)
	kick3 = rq.getKick(simulation3)
	#print(kick1, kick2, kick3) #Remove This!!
	error = np.abs(kick1-kick2)
	return error
Example #10
0
def truncError(path, directory):
    """Compares the higest resolution with the next highest resolution to 
	find the difference and returns that value as the error"""
    res = sortedResolution(path)
    if len(res) < 2:
        return -1
    path1 = path + '/' + res[-1][0] + '/'
    path2 = path + '/' + res[-2][0] + '/'
    sim1 = sm.Simulation(path1, directory)
    sim2 = sm.Simulation(path2, directory)
    kick1 = rq.getKick(sim1)
    kick2 = rq.getKick(sim2)
    error = np.abs(kick1 - kick2)
    return error
Example #11
0
def truncError(path,directory):
	"""Compares the higest resolution with the next highest resolution to 
	find the difference and returns that value as the error"""
	res = sortedResolution(path)
	if len(res)<2:
		return -1
	path1 = path + '/' + res[-1][0] + '/'
	path2 = path + '/' + res[-2][0] + '/'
	sim1 =  sm.Simulation(path1,directory)
	sim2 =  sm.Simulation(path2,directory)
	kick1 = rq.getKick(sim1)
	kick2 = rq.getKick(sim2)
	error = np.abs(kick1 - kick2)
	return error
Example #12
0
    def limitedModesError(self):

        new_path = self.path + '/' + self.res[-1][0] + '/'
        simulation = sm.Simulation(new_path, self.directory)
        kick2 = rq.getKick(simulation, 7)
        error = np.abs(self.kick - kick2)
        return error
Example #13
0
	def limitedModesError(self):
		
		new_path = self.path + '/' + self.res[-1][0] + '/'
		simulation = sm.Simulation(new_path,self.directory)
		kick2 = rq.getKick(simulation,7)
		error = np.abs(self.kick - kick2)
		return error
Example #14
0
def downSampleError(path, directory):
    res = sortedResolution(path)
    new_path = path + '/' + res[-1][0] + '/'
    simulation1 = sm.Simulation(new_path, directory)
    simulation2 = sm.Simulation(new_path,
                                directory,
                                relaxed=False,
                                downsample=2)
    simulation3 = sm.Simulation(new_path,
                                directory,
                                relaxed=False,
                                downsample=4)
    kick1 = rq.getKick(simulation1)
    kick2 = rq.getKick(simulation2)
    kick3 = rq.getKick(simulation3)
    #print(kick1, kick2, kick3) #Remove This!!
    error = np.abs(kick1 - kick2)
    return error
Example #15
0
 def downSampleError(self):
     new_path = self.path + '/' + self.res[-1][0] + '/'
     simulation2 = sm.Simulation(new_path,
                                 self.directory,
                                 relaxed=False,
                                 downsample=2)
     kick2 = rq.getKick(simulation2)
     error = np.abs(self.kick - kick2)
     return error
Example #16
0
	def truncErrorKick(self):
		"""Compares the higest resolution with the next highest resolution to 
		find the difference and returns that value as the error"""
		
		if len(self.res)<2:
			return -1
		sim2 =  self.getSecondHighestResolution()
		kick2 = rq.getKick(sim2)
		error = np.abs(self.kick - kick2)
		return error
Example #17
0
	def truncError(self):
		"""Compares the higest resolution with the next highest resolution to 
		find the difference and returns that value as the error"""
		
		if len(self.res)<2:
			return -1
		path2 = self.path + '/' + self.res[-2][0] + '/'
		sim2 =  sm.Simulation(path2,self.directory)
		kick2 = rq.getKick(sim2)
		error = np.abs(self.kick - kick2)
		return error
Example #18
0
    def truncError(self):
        """Compares the higest resolution with the next highest resolution to 
		find the difference and returns that value as the error"""

        if len(self.res) < 2:
            return -1
        path2 = self.path + '/' + self.res[-2][0] + '/'
        sim2 = sm.Simulation(path2, self.directory)
        kick2 = rq.getKick(sim2)
        error = np.abs(self.kick - kick2)
        return error
Example #19
0
	def limitedModesErrorKick(self):		
		kick2 = rq.getKick(self.simulation,7)
		error = np.abs(self.kick - kick2)
		return error
Example #20
0
	def junkErrorKick(self):
		simulation2 = self.getRelaxedTimeSimulation()
		kick2 = rq.getKick(simulation2)
		error = np.abs(self.kick - kick2)
		return error
Example #21
0
	def downSampleErrorKick(self):

		simulation2 = self.getDownsampledSimulation()
		kick2 = rq.getKick(simulation2)
		error = np.abs(self.kick-kick2)
		return error
Example #22
0
def highResKick(path, directory):
    """Returns the kick using the highest resolution available"""
    res = sortedResolution(path)
    new_path = path + '/' + res[-1][0] + '/'
    simulation = sm.Simulation(new_path, directory)
    return rq.getKick(simulation)
Example #23
0
def highResKick(path,directory):
	"""Returns the kick using the highest resolution available"""
	res = sortedResolution(path)
	new_path = path + '/' + res[-1][0] + '/'
	simulation = sm.Simulation(new_path,directory)
	return rq.getKick(simulation)
Example #24
0
	def downSampleError(self):
		new_path = self.path + '/' + self.res[-1][0] + '/'
		simulation2 = sm.Simulation(new_path,self.directory, relaxed=False, downsample = 2 )
		kick2 = rq.getKick(simulation2)
		error = np.abs(self.kick-kick2)
		return error
Example #25
0
	def junkError(self):
		new_path = self.path + '/' + self.res[-1][0] + '/'
		simulation2 = sm.Simulation(new_path,self.directory, relaxed = True)
		kick2 = rq.getKick(simulation2)
		error = np.abs(self.kick - kick2)
		return error
Example #26
0
 def getKick(self):
     self.kick = rq.getKick(self.simulation)
Example #27
0
	def extrapolationErrorKick(self):
		simulation2 = self.getOutermostSimulation()
		kick2 = rq.getKick(simulation2)
		error = np.abs(self.kick - kick2)
		return error
Example #28
0
	def getKick(self):
		self.kick = rq.getKick(self.simulation)
Example #29
0
 def junkError(self):
     new_path = self.path + '/' + self.res[-1][0] + '/'
     simulation2 = sm.Simulation(new_path, self.directory, relaxed=True)
     kick2 = rq.getKick(simulation2)
     error = np.abs(self.kick - kick2)
     return error