Skip to content
Merged
Show file tree
Hide file tree
Changes from 16 commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion Framework/PythonInterface/plugins/algorithms/Abins.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,9 @@ def PyExec(self):
prog_reporter.report("Input data from the user has been collected.")

# 2) read ab initio data
ab_initio_data = abins.AbinsData.from_calculation_data(self._vibrational_or_phonon_data_file, self._ab_initio_program)
ab_initio_data = abins.AbinsData.from_calculation_data(
self._vibrational_or_phonon_data_file, self._ab_initio_program, cache_directory=self._cache_directory
)
prog_reporter.report("Vibrational/phonon data has been read.")

# 3) calculate S
Expand All @@ -129,6 +131,7 @@ def PyExec(self):
instrument=self._instrument,
quantum_order_num=self._num_quantum_order_events,
autoconvolution_max=autoconvolution_max,
cache_directory=self._cache_directory,
)
s_calculator.progress_reporter = prog_reporter
s_data = s_calculator.get_formatted_data()
Expand Down
7 changes: 6 additions & 1 deletion Framework/PythonInterface/plugins/algorithms/Abins2D.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,11 @@ def PyExec(self):
prog_reporter.report("Input data from the user has been collected.")

# 2) read ab initio data
ab_initio_data = abins.AbinsData.from_calculation_data(self._vibrational_or_phonon_data_file, self._ab_initio_program)
ab_initio_data = abins.AbinsData.from_calculation_data(
self._vibrational_or_phonon_data_file,
self._ab_initio_program,
cache_directory=self._cache_directory,
)
prog_reporter.report("Vibrational/phonon data has been read.")

# 3) calculate S
Expand All @@ -139,6 +143,7 @@ def PyExec(self):
autoconvolution_max=autoconvolution_max,
instrument=self._instrument,
quantum_order_num=self._num_quantum_order_events,
cache_directory=self._cache_directory,
)
s_calculator.progress_reporter = prog_reporter
s_data = s_calculator.get_formatted_data()
Expand Down
Loading
Loading