issues
search
RQC-HU
/
dcaspt2_input_generator
GUI tool for supporting the generation of input files for DIRAC_CASPT2 calculation.
https://pypi.org/project/dcaspt2-input-generator/
Apache License 2.0
0
stars
1
forks
source link
Fixed column headers to display correctly
#45
Closed
kohei-noda-qcrg
closed
8 months ago
kohei-noda-qcrg
commented
8 months ago
カラムのヘッダ情報が上手く描画されていない問題を解消
load_output
の内部関数
set_table_data
の中でself.setHorizontalHeaderLabelsしていた
https://github.com/RQC-HU/dcaspt2_input_generator/blob/97c91437950216dcd2865663417fc4ada27f9797/src/dcaspt2_input_generator/components/table_widget.py#L186-L195
しかしこれだとself.setHorizontalHeaderLabelsが効いていなかったので、
load_output内でset_column_header_itemsという名前のクラスメソッドを呼び
、そのクラスメソッド内でself.setHorizontalHeaderLabelsするようにしたところ上手くヘッダ情報が表示されるようになった
https://github.com/RQC-HU/dcaspt2_input_generator/blob/c5672cfba726f85cc42a3d16b0d3394da3f5d994/src/dcaspt2_input_generator/components/table_widget.py#L146-L157
before
after
カラムのヘッダ情報が上手く描画されていない問題を解消
before
after