HOWTO define the DA script for NNDy
change of a comment at the top
This commit is contained in:
		
							parent
							
								
									3c2255a589
								
							
						
					
					
						commit
						85049f3204
					
				@ -1,3 +1,5 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
 | 
					#---IGNORE UNTIL---
 | 
				
			||||||
from lyse import Run as lyse_run
 | 
					from lyse import Run as lyse_run
 | 
				
			||||||
import h5py
 | 
					import h5py
 | 
				
			||||||
import sys
 | 
					import sys
 | 
				
			||||||
@ -9,7 +11,8 @@ import lmfit
 | 
				
			|||||||
from matplotlib import pyplot as plt
 | 
					from matplotlib import pyplot as plt
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#here it looks for the DA file, if not in the same folder as NNDy you can specify the folder in new_path
 | 
					
 | 
				
			||||||
 | 
					#imports for some analysis tools written by the group
 | 
				
			||||||
new_path = r'C:\Users\DyLab\PrepLab\Data_Analysis' 
 | 
					new_path = r'C:\Users\DyLab\PrepLab\Data_Analysis' 
 | 
				
			||||||
if new_path not in sys.path:
 | 
					if new_path not in sys.path:
 | 
				
			||||||
    sys.path.append(new_path)
 | 
					    sys.path.append(new_path)
 | 
				
			||||||
@ -31,6 +34,10 @@ cost_scaling_factor = {
 | 
				
			|||||||
    'peak_intensity': 10
 | 
					    'peak_intensity': 10
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#---HERE---
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#    THE COST FUNCTION
 | 
					#    THE COST FUNCTION
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
#in every DA script for NNDy we need a cost function defined as below
 | 
					#in every DA script for NNDy we need a cost function defined as below
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user