Skip to content

Commit

Permalink
fix bug with fourier filter
Browse files Browse the repository at this point in the history
  • Loading branch information
y8z committed Feb 7, 2025
1 parent 325bb1a commit 6a4c598
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions addie/calculate_gr/event_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def load_sq(main_window):
# set the UI widgets
main_window.calculategr_ui.doubleSpinBoxQmin.setValue(q_min)
main_window.calculategr_ui.doubleSpinBoxQmax.setValue(q_max)
main_window.calculategr_ui.lineEdit_rho.setText("1.0")
main_window.calculategr_ui.lineEdit_rho.setText("0.05")

# plot S(Q) - TODO why is it getting the name again?
ws_name = main_window._myController.get_current_sq_name()
Expand Down Expand Up @@ -291,7 +291,7 @@ def generate_gr_step2(main_window, sq_ws_name_list):

new_sq_wks = sq_ws_name + "_ff_rcutoff_" + r_cutoff_ff_text.replace(".", "p")

q_func = main_window.calculategr_ui.comboBox_SofQType.currentText()
q_func = main_window.calculategr_ui.comboBox_inSofQType.currentText()
if q_func == "S(Q)-1":
sq_out_tmp = [val_tmp - 1. for val_tmp in sq_out]
sq_out = np.array(sq_out_tmp)
Expand Down
2 changes: 1 addition & 1 deletion addie/ui/splitui_calculategr_tab.ui
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@
<enum>Qt::LeftToRight</enum>
</property>
<property name="text">
<string>rho0 </string>
<string>rho0 (/Å^3)</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
Expand Down

1 comment on commit 6a4c598

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GitLab pipeline for addie-dev has been submitted for this commit: "https://code.ornl.gov/sns-hfir-scse/deployments/addie-deploy/-/pipelines/670705"

Please sign in to comment.