finalcif 146__tar.gz → 148__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {finalcif-146 → finalcif-148}/PKG-INFO +1 -1
- finalcif-148/finalcif/__init__.py +2 -0
- {finalcif-146 → finalcif-148}/finalcif/appwindow.py +5 -2
- {finalcif-146 → finalcif-148}/finalcif/cif/cif_file_io.py +8 -10
- {finalcif-146 → finalcif-148}/finalcif/finalcif_start.py +21 -6
- {finalcif-146 → finalcif-148}/finalcif/gui/finalcif_gui_ui.py +11 -3
- {finalcif-146 → finalcif-148}/finalcif/gui/finalcif_gui_ui.ui +13 -2
- {finalcif-146 → finalcif-148}/finalcif/report/templated_report.py +3 -0
- finalcif-146/finalcif/__init__.py +0 -2
- {finalcif-146 → finalcif-148}/.gitattributes +0 -0
- {finalcif-146 → finalcif-148}/.gitignore +0 -0
- {finalcif-146 → finalcif-148}/.run/Make Documentation MAC.run.xml +0 -0
- {finalcif-146 → finalcif-148}/.run/compile_ui_files.run.xml +0 -0
- {finalcif-146 → finalcif-148}/.run/make documentation Windows.run.xml +0 -0
- {finalcif-146 → finalcif-148}/CODE_OF_CONDUCT.md +0 -0
- {finalcif-146 → finalcif-148}/CONTRIBUTING.md +0 -0
- {finalcif-146 → finalcif-148}/Finalcif_installer_win.spec +0 -0
- {finalcif-146 → finalcif-148}/Finalcif_linux_onefile.spec +0 -0
- {finalcif-146 → finalcif-148}/Finalcif_mac.spec +0 -0
- {finalcif-146 → finalcif-148}/Hydrogen_solution_type.cif +0 -0
- {finalcif-146 → finalcif-148}/LICENSE +0 -0
- {finalcif-146 → finalcif-148}/README.md +0 -0
- {finalcif-146 → finalcif-148}/finalcif/app_path.py +0 -0
- {finalcif-146 → finalcif-148}/finalcif/cif/__init__.py +0 -0
- {finalcif-146 → finalcif-148}/finalcif/cif/all_cif_dicts.py +0 -0
- {finalcif-146 → finalcif-148}/finalcif/cif/atoms.py +0 -0
- {finalcif-146 → finalcif-148}/finalcif/cif/checkcif/__init__.py +0 -0
- {finalcif-146 → finalcif-148}/finalcif/cif/checkcif/checkcif.py +0 -0
- {finalcif-146 → finalcif-148}/finalcif/cif/cif_dict_foo.py +0 -0
- {finalcif-146 → finalcif-148}/finalcif/cif/cif_order.py +0 -0
- {finalcif-146 → finalcif-148}/finalcif/cif/cod/__init__.py +0 -0
- {finalcif-146 → finalcif-148}/finalcif/cif/cod/deposit.py +0 -0
- {finalcif-146 → finalcif-148}/finalcif/cif/cod/deposit_check.py +0 -0
- {finalcif-146 → finalcif-148}/finalcif/cif/cod/deposition_list.py +0 -0
- {finalcif-146 → finalcif-148}/finalcif/cif/cod/doi.py +0 -0
- {finalcif-146 → finalcif-148}/finalcif/cif/cod/upload.py +0 -0
- {finalcif-146 → finalcif-148}/finalcif/cif/cod/website_parser.py +0 -0
- {finalcif-146 → finalcif-148}/finalcif/cif/core_dict.py +0 -0
- {finalcif-146 → finalcif-148}/finalcif/cif/hkl.py +0 -0
- {finalcif-146 → finalcif-148}/finalcif/cif/modulation_dict.py +0 -0
- {finalcif-146 → finalcif-148}/finalcif/cif/powder_dict.py +0 -0
- {finalcif-146 → finalcif-148}/finalcif/cif/reference.py +0 -0
- {finalcif-146 → finalcif-148}/finalcif/cif/restraints_dict.py +0 -0
- {finalcif-146 → finalcif-148}/finalcif/cif/text.py +0 -0
- {finalcif-146 → finalcif-148}/finalcif/cif/twin_dict.py +0 -0
- {finalcif-146 → finalcif-148}/finalcif/ciforder/__init__.py +0 -0
- {finalcif-146 → finalcif-148}/finalcif/ciforder/order.py +0 -0
- {finalcif-146 → finalcif-148}/finalcif/ciforder/order_ui.py +0 -0
- {finalcif-146 → finalcif-148}/finalcif/ciforder/order_ui.ui +0 -0
- {finalcif-146 → finalcif-148}/finalcif/datafiles/__init__.py +0 -0
- {finalcif-146 → finalcif-148}/finalcif/datafiles/bruker_data.py +0 -0
- {finalcif-146 → finalcif-148}/finalcif/datafiles/bruker_frame.py +0 -0
- {finalcif-146 → finalcif-148}/finalcif/datafiles/ccdc_mail.py +0 -0
- {finalcif-146 → finalcif-148}/finalcif/datafiles/data.py +0 -0
- {finalcif-146 → finalcif-148}/finalcif/datafiles/p4p_reader.py +0 -0
- {finalcif-146 → finalcif-148}/finalcif/datafiles/sadabs.py +0 -0
- {finalcif-146 → finalcif-148}/finalcif/datafiles/saint.py +0 -0
- {finalcif-146 → finalcif-148}/finalcif/datafiles/shelx_lst.py +0 -0
- {finalcif-146 → finalcif-148}/finalcif/datafiles/utils.py +0 -0
- {finalcif-146 → finalcif-148}/finalcif/displaymol/__init__.py +0 -0
- {finalcif-146 → finalcif-148}/finalcif/displaymol/molecule2D.py +0 -0
- {finalcif-146 → finalcif-148}/finalcif/displaymol/sdm.py +0 -0
- {finalcif-146 → finalcif-148}/finalcif/displaymol/vtk_molecule.py +0 -0
- {finalcif-146 → finalcif-148}/finalcif/equip_property/__init__.py +0 -0
- {finalcif-146 → finalcif-148}/finalcif/equip_property/author_loop_templates.py +0 -0
- {finalcif-146 → finalcif-148}/finalcif/equip_property/equipment.py +0 -0
- {finalcif-146 → finalcif-148}/finalcif/equip_property/properties.py +0 -0
- {finalcif-146 → finalcif-148}/finalcif/equip_property/tools.py +0 -0
- {finalcif-146 → finalcif-148}/finalcif/gui/__init__.py +0 -0
- {finalcif-146 → finalcif-148}/finalcif/gui/block_combobox.py +0 -0
- {finalcif-146 → finalcif-148}/finalcif/gui/combobox.py +0 -0
- {finalcif-146 → finalcif-148}/finalcif/gui/custom_classes.py +0 -0
- {finalcif-146 → finalcif-148}/finalcif/gui/dialogs.py +0 -0
- {finalcif-146 → finalcif-148}/finalcif/gui/edit_button.py +0 -0
- {finalcif-146 → finalcif-148}/finalcif/gui/equipmenttable.py +0 -0
- {finalcif-146 → finalcif-148}/finalcif/gui/file_editor.py +0 -0
- {finalcif-146 → finalcif-148}/finalcif/gui/import_selector.py +0 -0
- {finalcif-146 → finalcif-148}/finalcif/gui/import_selector_ui.py +0 -0
- {finalcif-146 → finalcif-148}/finalcif/gui/import_selector_ui.ui +0 -0
- {finalcif-146 → finalcif-148}/finalcif/gui/loop_creator.py +0 -0
- {finalcif-146 → finalcif-148}/finalcif/gui/loop_creator_ui.py +0 -0
- {finalcif-146 → finalcif-148}/finalcif/gui/loop_creator_ui.ui +0 -0
- {finalcif-146 → finalcif-148}/finalcif/gui/loops.py +0 -0
- {finalcif-146 → finalcif-148}/finalcif/gui/mainstackwidget.py +0 -0
- {finalcif-146 → finalcif-148}/finalcif/gui/mixins.py +0 -0
- {finalcif-146 → finalcif-148}/finalcif/gui/new_key_dialog.py +0 -0
- {finalcif-146 → finalcif-148}/finalcif/gui/new_key_dialog_ui.py +0 -0
- {finalcif-146 → finalcif-148}/finalcif/gui/new_key_dialog_ui.ui +0 -0
- {finalcif-146 → finalcif-148}/finalcif/gui/plaintextedit.py +0 -0
- {finalcif-146 → finalcif-148}/finalcif/gui/playground.py +0 -0
- {finalcif-146 → finalcif-148}/finalcif/gui/propertytable.py +0 -0
- {finalcif-146 → finalcif-148}/finalcif/gui/spell_check_edit.py +0 -0
- {finalcif-146 → finalcif-148}/finalcif/gui/text_templates_ui.py +0 -0
- {finalcif-146 → finalcif-148}/finalcif/gui/text_templates_ui.ui +0 -0
- {finalcif-146 → finalcif-148}/finalcif/gui/text_value_editor.py +0 -0
- {finalcif-146 → finalcif-148}/finalcif/gui/validators.py +0 -0
- {finalcif-146 → finalcif-148}/finalcif/gui/vrf_classes.py +0 -0
- {finalcif-146 → finalcif-148}/finalcif/icon/__init__.py +0 -0
- {finalcif-146 → finalcif-148}/finalcif/icon/finalcif.png +0 -0
- {finalcif-146 → finalcif-148}/finalcif/icon/finalcif2.ico +0 -0
- {finalcif-146 → finalcif-148}/finalcif/icon/finalcif2.png +0 -0
- {finalcif-146 → finalcif-148}/finalcif/icon/multitable.ico +0 -0
- {finalcif-146 → finalcif-148}/finalcif/icon/multitable.png +0 -0
- {finalcif-146 → finalcif-148}/finalcif/icon/multitable.xcf +0 -0
- {finalcif-146 → finalcif-148}/finalcif/report/__init__.py +0 -0
- {finalcif-146 → finalcif-148}/finalcif/report/archive_report.py +0 -0
- {finalcif-146 → finalcif-148}/finalcif/report/gui/__init__.py +0 -0
- {finalcif-146 → finalcif-148}/finalcif/report/gui/mainwindow.py +0 -0
- {finalcif-146 → finalcif-148}/finalcif/report/gui/mainwindow.ui +0 -0
- {finalcif-146 → finalcif-148}/finalcif/report/mtools.py +0 -0
- {finalcif-146 → finalcif-148}/finalcif/report/references.py +0 -0
- {finalcif-146 → finalcif-148}/finalcif/report/report_text.py +0 -0
- {finalcif-146 → finalcif-148}/finalcif/report/symm.py +0 -0
- {finalcif-146 → finalcif-148}/finalcif/report/tables.py +0 -0
- {finalcif-146 → finalcif-148}/finalcif/template/__init__.py +0 -0
- {finalcif-146 → finalcif-148}/finalcif/template/bootstrap/bootstrap.min.css +0 -0
- {finalcif-146 → finalcif-148}/finalcif/template/machines/D8_VENTURE.cif +0 -0
- {finalcif-146 → finalcif-148}/finalcif/template/mathml2omml.xsl +0 -0
- {finalcif-146 → finalcif-148}/finalcif/template/report.tmpl +0 -0
- {finalcif-146 → finalcif-148}/finalcif/template/report_default.docx +0 -0
- {finalcif-146 → finalcif-148}/finalcif/template/template1.docx +0 -0
- {finalcif-146 → finalcif-148}/finalcif/template/template_for_multitable.docx +0 -0
- {finalcif-146 → finalcif-148}/finalcif/template/template_text.docx +0 -0
- {finalcif-146 → finalcif-148}/finalcif/template/template_without_text.docx +0 -0
- {finalcif-146 → finalcif-148}/finalcif/template/templates.py +0 -0
- {finalcif-146 → finalcif-148}/finalcif/template/xsl/convert.py +0 -0
- {finalcif-146 → finalcif-148}/finalcif/template/xsl/xmltohtml.xsl +0 -0
- {finalcif-146 → finalcif-148}/finalcif/tools/__init__.py +0 -0
- {finalcif-146 → finalcif-148}/finalcif/tools/chemparse.py +0 -0
- {finalcif-146 → finalcif-148}/finalcif/tools/download.py +0 -0
- {finalcif-146 → finalcif-148}/finalcif/tools/dsrmath.py +0 -0
- {finalcif-146 → finalcif-148}/finalcif/tools/misc.py +0 -0
- {finalcif-146 → finalcif-148}/finalcif/tools/options.py +0 -0
- {finalcif-146 → finalcif-148}/finalcif/tools/platon.py +0 -0
- {finalcif-146 → finalcif-148}/finalcif/tools/pupdate.py +0 -0
- {finalcif-146 → finalcif-148}/finalcif/tools/settings.py +0 -0
- {finalcif-146 → finalcif-148}/finalcif/tools/shred.py +0 -0
- {finalcif-146 → finalcif-148}/finalcif/tools/space_groups.py +0 -0
- {finalcif-146 → finalcif-148}/finalcif/tools/spgr_format.py +0 -0
- {finalcif-146 → finalcif-148}/finalcif/tools/statusbar.py +0 -0
- {finalcif-146 → finalcif-148}/finalcif/tools/sumformula.py +0 -0
- {finalcif-146 → finalcif-148}/finalcif.exe +0 -0
- {finalcif-146 → finalcif-148}/install_requirements +0 -0
- {finalcif-146 → finalcif-148}/install_requirements.bat +0 -0
- {finalcif-146 → finalcif-148}/pyproject.toml +0 -0
- {finalcif-146 → finalcif-148}/requirements.txt +0 -0
- {finalcif-146 → finalcif-148}/requirements_devel.txt +0 -0
- {finalcif-146 → finalcif-148}/requirements_doku.txt +0 -0
- {finalcif-146 → finalcif-148}/run_finalcif +0 -0
- {finalcif-146 → finalcif-148}/run_finalcif.bat +0 -0
- {finalcif-146 → finalcif-148}/screenshots/finalcif_checkcif.png +0 -0
- {finalcif-146 → finalcif-148}/screenshots/finalcif_details.png +0 -0
- {finalcif-146 → finalcif-148}/screenshots/finalcif_loops.png +0 -0
- {finalcif-146 → finalcif-148}/screenshots/finalcif_loops2.png +0 -0
- {finalcif-146 → finalcif-148}/screenshots/finalcif_main.png +0 -0
- {finalcif-146 → finalcif-148}/screenshots/finalcif_report.png +0 -0
- {finalcif-146 → finalcif-148}/screenshots/finalcif_responses.png +0 -0
- {finalcif-146 → finalcif-148}/update.exe +0 -0
|
@@ -1604,8 +1604,11 @@ class AppWindow(QMainWindow):
|
|
|
1604
1604
|
"""
|
|
1605
1605
|
vheader: QtWidgets.QHeaderView = self.ui.cif_main_table.verticalHeader()
|
|
1606
1606
|
fm = QtGui.QFontMetrics(vheader.font(), self)
|
|
1607
|
-
|
|
1608
|
-
|
|
1607
|
+
try:
|
|
1608
|
+
# noinspection PyTypeChecker
|
|
1609
|
+
longest_string: str = max(self.ui.cif_main_table.vheaderitems, key=len)
|
|
1610
|
+
except ValueError:
|
|
1611
|
+
longest_string = '_chemical_formula_sum_foo'
|
|
1609
1612
|
vheader.setMaximumWidth(fm.width(longest_string + 'O'))
|
|
1610
1613
|
|
|
1611
1614
|
def changes_cif_has_values(self) -> bool:
|
|
@@ -42,7 +42,6 @@ class CifContainer():
|
|
|
42
42
|
the existing document is opened.
|
|
43
43
|
"""
|
|
44
44
|
self.picometer: bool = False
|
|
45
|
-
self._hkl_file: str = ''
|
|
46
45
|
self._abs_hkl_details: Dict[str, str] = {}
|
|
47
46
|
if isinstance(file, str):
|
|
48
47
|
self.fileobj = Path(file)
|
|
@@ -347,14 +346,10 @@ class CifContainer():
|
|
|
347
346
|
def hkl_file(self) -> str:
|
|
348
347
|
hkl_loop: Loop = self.get_loop('_diffrn_refln_index_h')
|
|
349
348
|
if hkl_loop and hkl_loop.width() > 4:
|
|
350
|
-
|
|
351
|
-
self._hkl_file = self._hkl_from_cif_format(hkl_loop)
|
|
352
|
-
return self._hkl_file
|
|
349
|
+
return self._hkl_from_cif_format(hkl_loop)
|
|
353
350
|
else:
|
|
354
351
|
# returns an empty string if no cif hkl was found:
|
|
355
|
-
|
|
356
|
-
self._hkl_file = self._hkl_from_shelx()
|
|
357
|
-
return self._hkl_file
|
|
352
|
+
return self._hkl_from_shelx()
|
|
358
353
|
|
|
359
354
|
def _hkl_from_cif_format(self, hkl_loop: Loop) -> str:
|
|
360
355
|
hkl_list = []
|
|
@@ -400,7 +395,7 @@ class CifContainer():
|
|
|
400
395
|
return HKL(self.hkl_file, self.block.name, hklf_type=self.hklf_number).get_hkl_min_max()
|
|
401
396
|
|
|
402
397
|
def _hklf_number_from_shelxl_file(self) -> int:
|
|
403
|
-
if self.shx.hklf:
|
|
398
|
+
if self.shx and self.shx.hklf:
|
|
404
399
|
return self.shx.hklf.n if self.shx.hklf.n != 0 else 4
|
|
405
400
|
else:
|
|
406
401
|
return 4
|
|
@@ -524,8 +519,11 @@ class CifContainer():
|
|
|
524
519
|
|
|
525
520
|
def add_loop_from_columns(self, loop_tags: List[str],
|
|
526
521
|
column_values: Union[List[List[str]], Tuple[Tuple[str]]]) -> gemmi.cif.Loop:
|
|
527
|
-
|
|
528
|
-
|
|
522
|
+
try:
|
|
523
|
+
gemmi_loop = self.init_loop(loop_tags)
|
|
524
|
+
gemmi_loop.set_all_values(column_values)
|
|
525
|
+
except RuntimeError as err:
|
|
526
|
+
raise Exception('Gemmi raised an exception') from err
|
|
529
527
|
return gemmi_loop
|
|
530
528
|
|
|
531
529
|
@property
|
|
@@ -14,8 +14,7 @@ from typing import Type
|
|
|
14
14
|
from finalcif import VERSION
|
|
15
15
|
from finalcif.app_path import application_path
|
|
16
16
|
from finalcif.appwindow import AppWindow, DEBUG, app
|
|
17
|
-
from finalcif.gui.dialogs import show_bug_found_warning
|
|
18
|
-
from finalcif.gui.dialogs import show_general_warning
|
|
17
|
+
from finalcif.gui.dialogs import show_bug_found_warning, show_general_warning
|
|
19
18
|
|
|
20
19
|
|
|
21
20
|
def my_exception_hook(exctype: Type[BaseException], value: BaseException, error_traceback: traceback,
|
|
@@ -30,10 +29,26 @@ def my_exception_hook(exctype: Type[BaseException], value: BaseException, error_
|
|
|
30
29
|
f'Date: {time.asctime(time.localtime(time.time()))}\n'
|
|
31
30
|
f'Finalcif crashed during the following operation:\n\n'
|
|
32
31
|
f'{"-" * 120}\n'
|
|
33
|
-
f'{"".join(traceback.format_tb(error_traceback))}\n'
|
|
34
|
-
f'{str(exctype.__name__)}: '
|
|
35
|
-
f'{str(value)} \n'
|
|
36
|
-
f'{"-" * 120}\n'
|
|
32
|
+
# f'{"".join(traceback.format_tb(error_traceback))}\n'
|
|
33
|
+
# f'{str(exctype.__name__)}: '
|
|
34
|
+
# f'{str(value)} \n'
|
|
35
|
+
# f'{"-" * 120}\n'
|
|
36
|
+
)
|
|
37
|
+
|
|
38
|
+
# Walk through the traceback and extract local variables
|
|
39
|
+
for frame, _ in traceback.walk_tb(error_traceback):
|
|
40
|
+
errortext += (f'File "{frame.f_code.co_filename}", line {frame.f_lineno}, in '
|
|
41
|
+
f'{frame.f_code.co_qualname}(...):\n')
|
|
42
|
+
newline = '\n'
|
|
43
|
+
errortext += f' Locals: \n '
|
|
44
|
+
errortext += " ".join(
|
|
45
|
+
[f" {k}:{newline} {' '.join([x + newline for x in repr(v).splitlines()])}" for k, v in
|
|
46
|
+
frame.f_locals.items()]) + '\n\n'
|
|
47
|
+
|
|
48
|
+
errortext += f'{"-" * 120}\n'
|
|
49
|
+
errortext += f'{str(exctype.__name__)}: {str(value)} \n'
|
|
50
|
+
errortext += f'{"-" * 120}\n'
|
|
51
|
+
|
|
37
52
|
logfile = Path.home().joinpath(Path(r'finalcif-crash.txt'))
|
|
38
53
|
try:
|
|
39
54
|
logfile.write_text(errortext)
|
|
@@ -414,7 +414,7 @@ class Ui_FinalCifWindow(object):
|
|
|
414
414
|
self.page_MainTable = QtWidgets.QWidget()
|
|
415
415
|
self.page_MainTable.setObjectName("page_MainTable")
|
|
416
416
|
self.verticalLayout = QtWidgets.QVBoxLayout(self.page_MainTable)
|
|
417
|
-
self.verticalLayout.setContentsMargins(0,
|
|
417
|
+
self.verticalLayout.setContentsMargins(0, 6, 0, 0)
|
|
418
418
|
self.verticalLayout.setSpacing(0)
|
|
419
419
|
self.verticalLayout.setObjectName("verticalLayout")
|
|
420
420
|
self.cif_main_table = MyCifTable(self.page_MainTable)
|
|
@@ -614,6 +614,7 @@ class Ui_FinalCifWindow(object):
|
|
|
614
614
|
font.setFamily("Courier New")
|
|
615
615
|
font.setPointSize(11)
|
|
616
616
|
font.setBold(True)
|
|
617
|
+
font.setWeight(75)
|
|
617
618
|
self.shelx_warn_TextEdit.setFont(font)
|
|
618
619
|
self.shelx_warn_TextEdit.setUndoRedoEnabled(False)
|
|
619
620
|
self.shelx_warn_TextEdit.setLineWrapMode(QtWidgets.QPlainTextEdit.NoWrap)
|
|
@@ -651,6 +652,7 @@ class Ui_FinalCifWindow(object):
|
|
|
651
652
|
font = QtGui.QFont()
|
|
652
653
|
font.setBold(False)
|
|
653
654
|
font.setItalic(False)
|
|
655
|
+
font.setWeight(50)
|
|
654
656
|
self.wR2Label.setFont(font)
|
|
655
657
|
self.wR2Label.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
|
|
656
658
|
self.wR2Label.setObjectName("wR2Label")
|
|
@@ -663,6 +665,7 @@ class Ui_FinalCifWindow(object):
|
|
|
663
665
|
font = QtGui.QFont()
|
|
664
666
|
font.setBold(False)
|
|
665
667
|
font.setItalic(False)
|
|
668
|
+
font.setWeight(50)
|
|
666
669
|
self.r1Label.setFont(font)
|
|
667
670
|
self.r1Label.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
|
|
668
671
|
self.r1Label.setObjectName("r1Label")
|
|
@@ -690,6 +693,7 @@ class Ui_FinalCifWindow(object):
|
|
|
690
693
|
self.completeLabel = QtWidgets.QLabel(self.groupBox_3)
|
|
691
694
|
font = QtGui.QFont()
|
|
692
695
|
font.setBold(False)
|
|
696
|
+
font.setWeight(50)
|
|
693
697
|
self.completeLabel.setFont(font)
|
|
694
698
|
self.completeLabel.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
|
|
695
699
|
self.completeLabel.setObjectName("completeLabel")
|
|
@@ -737,6 +741,7 @@ class Ui_FinalCifWindow(object):
|
|
|
737
741
|
self.dataReflnsLabel = QtWidgets.QLabel(self.groupBox_3)
|
|
738
742
|
font = QtGui.QFont()
|
|
739
743
|
font.setBold(False)
|
|
744
|
+
font.setWeight(50)
|
|
740
745
|
self.dataReflnsLabel.setFont(font)
|
|
741
746
|
self.dataReflnsLabel.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
|
|
742
747
|
self.dataReflnsLabel.setObjectName("dataReflnsLabel")
|
|
@@ -803,6 +808,7 @@ class Ui_FinalCifWindow(object):
|
|
|
803
808
|
self.rintLabel = QtWidgets.QLabel(self.groupBox_3)
|
|
804
809
|
font = QtGui.QFont()
|
|
805
810
|
font.setBold(False)
|
|
811
|
+
font.setWeight(50)
|
|
806
812
|
self.rintLabel.setFont(font)
|
|
807
813
|
self.rintLabel.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
|
|
808
814
|
self.rintLabel.setObjectName("rintLabel")
|
|
@@ -814,6 +820,7 @@ class Ui_FinalCifWindow(object):
|
|
|
814
820
|
self.rsigmaLabel = QtWidgets.QLabel(self.groupBox_3)
|
|
815
821
|
font = QtGui.QFont()
|
|
816
822
|
font.setBold(False)
|
|
823
|
+
font.setWeight(50)
|
|
817
824
|
self.rsigmaLabel.setFont(font)
|
|
818
825
|
self.rsigmaLabel.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
|
|
819
826
|
self.rsigmaLabel.setObjectName("rsigmaLabel")
|
|
@@ -849,6 +856,7 @@ class Ui_FinalCifWindow(object):
|
|
|
849
856
|
self.dLabel = QtWidgets.QLabel(self.groupBox_3)
|
|
850
857
|
font = QtGui.QFont()
|
|
851
858
|
font.setBold(False)
|
|
859
|
+
font.setWeight(50)
|
|
852
860
|
self.dLabel.setFont(font)
|
|
853
861
|
self.dLabel.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
|
|
854
862
|
self.dLabel.setObjectName("dLabel")
|
|
@@ -1128,7 +1136,7 @@ class Ui_FinalCifWindow(object):
|
|
|
1128
1136
|
self.page_Loops = QtWidgets.QWidget()
|
|
1129
1137
|
self.page_Loops.setObjectName("page_Loops")
|
|
1130
1138
|
self.verticalLayout_9 = QtWidgets.QVBoxLayout(self.page_Loops)
|
|
1131
|
-
self.verticalLayout_9.setContentsMargins(0,
|
|
1139
|
+
self.verticalLayout_9.setContentsMargins(0, 12, 0, 0)
|
|
1132
1140
|
self.verticalLayout_9.setObjectName("verticalLayout_9")
|
|
1133
1141
|
self.LoopsTabWidget = QtWidgets.QTabWidget(self.page_Loops)
|
|
1134
1142
|
self.LoopsTabWidget.setObjectName("LoopsTabWidget")
|
|
@@ -1839,7 +1847,7 @@ class Ui_FinalCifWindow(object):
|
|
|
1839
1847
|
self.retranslateUi(FinalCifWindow)
|
|
1840
1848
|
self.TemplatesStackedWidget.setCurrentIndex(0)
|
|
1841
1849
|
self.EquipmentTemplatesStackedWidget.setCurrentIndex(0)
|
|
1842
|
-
self.MainStackedWidget.setCurrentIndex(
|
|
1850
|
+
self.MainStackedWidget.setCurrentIndex(5)
|
|
1843
1851
|
self.PropertiesTemplatesStackedWidget.setCurrentIndex(1)
|
|
1844
1852
|
self.LoopsTabWidget.setCurrentIndex(0)
|
|
1845
1853
|
self.authorEditTabWidget.setCurrentIndex(1)
|
|
@@ -1013,7 +1013,7 @@
|
|
|
1013
1013
|
<item row="2" column="0" colspan="13">
|
|
1014
1014
|
<widget class="MyMainStackedWidget" name="MainStackedWidget">
|
|
1015
1015
|
<property name="currentIndex">
|
|
1016
|
-
<number>
|
|
1016
|
+
<number>5</number>
|
|
1017
1017
|
</property>
|
|
1018
1018
|
<widget class="QWidget" name="page_MainTable">
|
|
1019
1019
|
<layout class="QVBoxLayout" name="verticalLayout">
|
|
@@ -1024,7 +1024,7 @@
|
|
|
1024
1024
|
<number>0</number>
|
|
1025
1025
|
</property>
|
|
1026
1026
|
<property name="topMargin">
|
|
1027
|
-
<number>
|
|
1027
|
+
<number>6</number>
|
|
1028
1028
|
</property>
|
|
1029
1029
|
<property name="rightMargin">
|
|
1030
1030
|
<number>0</number>
|
|
@@ -1536,6 +1536,7 @@
|
|
|
1536
1536
|
<font>
|
|
1537
1537
|
<family>Courier New</family>
|
|
1538
1538
|
<pointsize>11</pointsize>
|
|
1539
|
+
<weight>75</weight>
|
|
1539
1540
|
<bold>true</bold>
|
|
1540
1541
|
</font>
|
|
1541
1542
|
</property>
|
|
@@ -1602,6 +1603,7 @@
|
|
|
1602
1603
|
<widget class="QLabel" name="wR2Label">
|
|
1603
1604
|
<property name="font">
|
|
1604
1605
|
<font>
|
|
1606
|
+
<weight>50</weight>
|
|
1605
1607
|
<italic>false</italic>
|
|
1606
1608
|
<bold>false</bold>
|
|
1607
1609
|
</font>
|
|
@@ -1625,6 +1627,7 @@
|
|
|
1625
1627
|
<widget class="QLabel" name="r1Label">
|
|
1626
1628
|
<property name="font">
|
|
1627
1629
|
<font>
|
|
1630
|
+
<weight>50</weight>
|
|
1628
1631
|
<italic>false</italic>
|
|
1629
1632
|
<bold>false</bold>
|
|
1630
1633
|
</font>
|
|
@@ -1682,6 +1685,7 @@
|
|
|
1682
1685
|
<widget class="QLabel" name="completeLabel">
|
|
1683
1686
|
<property name="font">
|
|
1684
1687
|
<font>
|
|
1688
|
+
<weight>50</weight>
|
|
1685
1689
|
<bold>false</bold>
|
|
1686
1690
|
</font>
|
|
1687
1691
|
</property>
|
|
@@ -1797,6 +1801,7 @@
|
|
|
1797
1801
|
<widget class="QLabel" name="dataReflnsLabel">
|
|
1798
1802
|
<property name="font">
|
|
1799
1803
|
<font>
|
|
1804
|
+
<weight>50</weight>
|
|
1800
1805
|
<bold>false</bold>
|
|
1801
1806
|
</font>
|
|
1802
1807
|
</property>
|
|
@@ -1944,6 +1949,7 @@
|
|
|
1944
1949
|
<widget class="QLabel" name="rintLabel">
|
|
1945
1950
|
<property name="font">
|
|
1946
1951
|
<font>
|
|
1952
|
+
<weight>50</weight>
|
|
1947
1953
|
<bold>false</bold>
|
|
1948
1954
|
</font>
|
|
1949
1955
|
</property>
|
|
@@ -1966,6 +1972,7 @@
|
|
|
1966
1972
|
<widget class="QLabel" name="rsigmaLabel">
|
|
1967
1973
|
<property name="font">
|
|
1968
1974
|
<font>
|
|
1975
|
+
<weight>50</weight>
|
|
1969
1976
|
<bold>false</bold>
|
|
1970
1977
|
</font>
|
|
1971
1978
|
</property>
|
|
@@ -2039,6 +2046,7 @@
|
|
|
2039
2046
|
<widget class="QLabel" name="dLabel">
|
|
2040
2047
|
<property name="font">
|
|
2041
2048
|
<font>
|
|
2049
|
+
<weight>50</weight>
|
|
2042
2050
|
<bold>false</bold>
|
|
2043
2051
|
</font>
|
|
2044
2052
|
</property>
|
|
@@ -2617,6 +2625,9 @@ The data source will be ignored until next program restart.</string>
|
|
|
2617
2625
|
</widget>
|
|
2618
2626
|
<widget class="QWidget" name="page_Loops">
|
|
2619
2627
|
<layout class="QVBoxLayout" name="verticalLayout_9">
|
|
2628
|
+
<property name="topMargin">
|
|
2629
|
+
<number>12</number>
|
|
2630
|
+
</property>
|
|
2620
2631
|
<item>
|
|
2621
2632
|
<widget class="QTabWidget" name="LoopsTabWidget">
|
|
2622
2633
|
<property name="currentIndex">
|
|
@@ -1105,7 +1105,9 @@ class TemplatedReport():
|
|
|
1105
1105
|
context, tpl_doc = self.prepare_report_data(self.cif, self.options, picfile, tpl_doc)
|
|
1106
1106
|
# Filter definition for {{foobar|filter}} things:
|
|
1107
1107
|
jinja_env = jinja2.Environment()
|
|
1108
|
+
jinja_env.globals.update(zip=zip)
|
|
1108
1109
|
jinja_env.globals.update(strip=str.strip)
|
|
1110
|
+
jinja_env.filters['utf8'] = report_text.utf8
|
|
1109
1111
|
jinja_env.filters['inv_article'] = report_text.get_inf_article
|
|
1110
1112
|
jinja_env.filters['to_pm'] = angstrom_to_pm if self.options.use_picometers else do_nothing
|
|
1111
1113
|
jinja_env.filters['to_nm'] = angstrom_to_nanometers if self.options.use_picometers else do_nothing
|
|
@@ -1144,6 +1146,7 @@ class TemplatedReport():
|
|
|
1144
1146
|
autoescape=select_autoescape(['html', 'htm', 'xml']))
|
|
1145
1147
|
# Add zip() method to global namespace of the template:
|
|
1146
1148
|
jinja_env.globals.update(zip=zip)
|
|
1149
|
+
jinja_env.globals.update(strip=str.strip)
|
|
1147
1150
|
jinja_env.filters['to_pm'] = angstrom_to_pm if self.options.use_picometers else do_nothing
|
|
1148
1151
|
jinja_env.filters['to_nm'] = angstrom_to_nanometers if self.options.use_picometers else do_nothing
|
|
1149
1152
|
jinja_env.filters['inv_article'] = report_text.get_inf_article
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|