Skip to content

Commit

Permalink
Removed rounding in some scenarios
Browse files Browse the repository at this point in the history
  • Loading branch information
AdhTri001 committed May 20, 2024
1 parent 8293b63 commit 33a2e9c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
4 changes: 2 additions & 2 deletions litesoph/engines/gpaw/task_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
"energy_conv": {'type':DT.decimal, 'min': None, 'max': None, 'default_value': 5.0e-7} ,
"density_conv": {'type':DT.decimal, 'min': None, 'max': None, 'default_value': 1e-6} ,
"smearing_fun":{'type':DT.string, 'values':["","improved-tetrahedron-method","tetrahedron-method","fermi-dirac","marzari-vanderbilt"], 'default_value': ''},
"smearing_width": {'type':DT.decimal, 'min': None, 'max': None, 'default_value': 0.0},
"mixing": None,
"smearing_width": {'type':DT.decimal, 'min': None, 'max': None, 'default_value': 0.05},
"mixing": {'type':DT.decimal, 'min': None, 'max': None, 'default_value': 0.03},

}

Expand Down
5 changes: 2 additions & 3 deletions litesoph/engines/nwchem/nwchem_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,6 @@ def create_engine(self, param):
param['basis'] =self.dependent_tasks[0].engine_param.get('basis')
update_td_param(param)


self.task_info.input['engine_input']['path'] = str(self.task_dir.relative_to(self.directory) / self.infile)

self.nwchem = NWChem(infile= self.infile, outfile=self.outfile,
Expand Down Expand Up @@ -372,8 +371,8 @@ def update_td_param(param):
lasers = param.pop('laser', None)
masking = param.pop('masking', None)

param['rt_tddft'] = {'tmax': round(num_step * time_step * as_to_au,2),
'dt': round(time_step * as_to_au, 2),
param['rt_tddft'] = {'tmax': num_step * time_step * as_to_au,
'dt': time_step * as_to_au,
'print':out_print(properties)}

if restart:
Expand Down
2 changes: 1 addition & 1 deletion litesoph/engines/nwchem/spectrum_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def create_engine(self, param):
self.network_done_file = self.task_dir / 'Done'

outfile = self.directory / self.dependent_tasks[0].output.get('txt_out')

self.nwchem = NWChem(outfile=outfile,
label=label, directory=self.task_dir)

Expand Down
1 change: 0 additions & 1 deletion litesoph/visualization/plot_spectrum.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ def plot(fname,image):
plt.savefig('spec.png')

def plot_spectrum(filename, imgfile, row:int, y_column, xlabel:str, ylabel:str, xlimit=(0.0, 30.0), legends:list[str] = []):
"""Plots the sum and difference of two columns vs another column, with the option to plot just one column if second_y_column is not provided."""

# Load the data
data = np.loadtxt(filename)
Expand Down

0 comments on commit 33a2e9c

Please sign in to comment.