Merge branch 'hotfix/1.7.post13'
This commit is contained in:
		
						commit
						c9aa391634
					
				|  | @ -727,15 +727,15 @@ class SpecIO(object): | ||||||
|         content += line |         content += line | ||||||
| 
 | 
 | ||||||
|         nat = p.extra_nat |         nat = p.extra_nat | ||||||
|         nra_arr = np.ones((nat), dtype=np.int) |         nra_arr = np.ones((nat), dtype=int) | ||||||
|         thfwd_arr = np.ones((nat)) |         thfwd_arr = np.ones((nat)) | ||||||
|         path_filtering = p.extra_parameters['calculation'].get_parameter( |         path_filtering = p.extra_parameters['calculation'].get_parameter( | ||||||
|             'path_filtering').value |             'path_filtering').value | ||||||
|         if (path_filtering is not None and |         if (path_filtering is not None and | ||||||
|                 'backward_scattering' in path_filtering): |                 'backward_scattering' in path_filtering): | ||||||
|             ibwd_arr = np.ones((nat), dtype=np.int) |             ibwd_arr = np.ones((nat), dtype=int) | ||||||
|         else: |         else: | ||||||
|             ibwd_arr = np.zeros((nat), dtype=np.int) |             ibwd_arr = np.zeros((nat), dtype=int) | ||||||
|         thbwd_arr = np.ones((nat)) |         thbwd_arr = np.ones((nat)) | ||||||
|         for at in p.extra_atoms: |         for at in p.extra_atoms: | ||||||
|             i = at.get('proto_index') - 1 |             i = at.get('proto_index') - 1 | ||||||
|  |  | ||||||
|  | @ -301,7 +301,7 @@ class _MSCALCULATOR(Calculator): | ||||||
|         wf = 4.5 |         wf = 4.5 | ||||||
|         source_energy = self.source_parameters.get_parameter('energy').value |         source_energy = self.source_parameters.get_parameter('energy').value | ||||||
|         ke = source_energy - binding_energy - wf |         ke = source_energy - binding_energy - wf | ||||||
|         #return np.array(ke, dtype=np.float).flatten() |         #return np.array(ke, dtype=float).flatten() | ||||||
|         return ke |         return ke | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -1310,8 +1310,8 @@ class ScanParameters(BaseParameters): | ||||||
|         #    LOGGER.error('Incompatible options!') |         #    LOGGER.error('Incompatible options!') | ||||||
|         #    raise ValueError(msg) |         #    raise ValueError(msg) | ||||||
| 
 | 
 | ||||||
|         # p._value = np.array(p.value, dtype=np.float).flatten() |         # p._value = np.array(p.value, dtype=float).flatten() | ||||||
|         arr = np.array(p.value, dtype=np.float).flatten() |         arr = np.array(p.value, dtype=float).flatten() | ||||||
| 
 | 
 | ||||||
|         theta0 = arr[0] |         theta0 = arr[0] | ||||||
|         theta1 = arr[-1] |         theta1 = arr[-1] | ||||||
|  | @ -1345,7 +1345,7 @@ class ScanParameters(BaseParameters): | ||||||
|        #    LOGGER.error('Incompatible options') |        #    LOGGER.error('Incompatible options') | ||||||
|        #    raise ValueError(msg) |        #    raise ValueError(msg) | ||||||
| 
 | 
 | ||||||
|         arr = np.array(p.value, dtype=np.float).flatten() |         arr = np.array(p.value, dtype=float).flatten() | ||||||
| 
 | 
 | ||||||
|         phi0 = arr[0] |         phi0 = arr[0] | ||||||
|         phi1 = arr[-1] |         phi1 = arr[-1] | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue