File tree 2 files changed +9
-4
lines changed
2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ exclude =
4
4
__pycache__,
5
5
build,
6
6
dist,
7
+ __init__.py
7
8
doc/source/conf.py
8
9
max-line-length = 115
9
10
# Ignore some style 'errors' produced while formatting by 'black'
Original file line number Diff line number Diff line change 17
17
18
18
"""PDFfit2 - real space structure refinement program."""
19
19
20
- # package version
20
+ # Import package version to be used by with C++ extensions
21
21
from diffpy .pdffit2 .output import redirect_stdout
22
- from diffpy .pdffit2 .pdffit import PdfFit
23
- from diffpy .pdffit2 .pdffit2 import is_element
24
22
from diffpy .pdffit2 .version import __date__ , __version__
25
23
26
- # silence the pyflakes syntax checker
24
+ # Ensure the version and date variables are initialized
27
25
assert __version__ or True
28
26
assert __date__ or True
27
+
28
+ # Import C++ related modules after version info is initialized
29
+ from diffpy .pdffit2 .pdffit import PdfFit
30
+ from diffpy .pdffit2 .pdffit2 import is_element # Import element check functionality
31
+
32
+ # Ensure all necessary components are imported and initialized
29
33
assert all ((PdfFit , redirect_stdout , is_element ))
30
34
31
35
# End of file
You can’t perform that action at this time.
0 commit comments