File tree 5 files changed +20
-13
lines changed
diffpy/srmise/applications
diffpy.srmise/requirements
5 files changed +20
-13
lines changed Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ def rm(directory, filerestr):
88
88
rm ("../doc/examples/output" , r"known_dG.*\.pwa" )
89
89
rm ("../doc/examples/output" , r"unknown_dG.*\.pwa" )
90
90
91
- ### Testing examples
91
+ # Testing examples
92
92
examples = Test ()
93
93
test_names = [
94
94
"extract_single_peak" ,
@@ -110,7 +110,7 @@ def rm(directory, filerestr):
110
110
111
111
examples .report ()
112
112
113
- ### Convert output of example files to Unix-style endlines for sdist.
113
+ # Convert output of example files to Unix-style endlines for sdist.
114
114
if os .linesep != "\n " :
115
115
print ("==== Scrubbing Endlines ====" )
116
116
# All *.srmise and *.pwa files in examples directory.
Original file line number Diff line number Diff line change
1
+ matplotlib-base
2
+ numpy
3
+ scipy
Original file line number Diff line number Diff line change
1
+ flake8
2
+ pytest
3
+ codecov
4
+ coverage
5
+ pytest-env
Original file line number Diff line number Diff line change 11
11
#
12
12
##############################################################################
13
13
14
- from optparse import OptionGroup , OptionParser
14
+ import textwrap
15
+ from optparse import IndentedHelpFormatter , OptionGroup , OptionParser
15
16
16
17
import matplotlib .pyplot as plt
17
18
import numpy as np
@@ -539,7 +540,7 @@ def main():
539
540
cov = None
540
541
if options .performextraction :
541
542
cov = ext .extract ()
542
- out = ext .extracted
543
+ ext .extracted
543
544
544
545
if options .savefile is not None :
545
546
try :
@@ -591,13 +592,10 @@ def parsepars(mp, parseq):
591
592
return mp .actualize (pars , "internal" , free = free )
592
593
593
594
594
- ### Class to preserve newlines in optparse
595
+ # Class to preserve newlines in optparse
595
596
# Borrowed, with minor changes, from
596
597
# http://groups.google.com/group/comp.lang.python/browse_frm/thread/6df6e6b541a15bc2/09f28e26af0699b1
597
598
598
- import textwrap
599
- from optparse import IndentedHelpFormatter
600
-
601
599
602
600
class IndentedHelpFormatterWithNL (IndentedHelpFormatter ):
603
601
def _format_text (self , text ):
@@ -652,7 +650,7 @@ def format_option(self, option):
652
650
return "" .join (result )
653
651
654
652
655
- ### End class
653
+ # End class
656
654
657
655
if __name__ == "__main__" :
658
656
main ()
Original file line number Diff line number Diff line change 16
16
import sys
17
17
import time
18
18
19
+ from setup import versiondata
20
+
19
21
# If extensions (or modules to document with autodoc) are in another directory,
20
22
# add these directories to sys.path here. If the directory is relative to the
21
23
# documentation root, use os.path.abspath to make it absolute, like shown here.
59
61
# |version| and |release|, also used in various other places throughout the
60
62
# built documents.
61
63
sys .path .insert (0 , os .path .abspath ("../../.." ))
62
- from setup import versiondata
63
64
64
65
fullversion = versiondata .get ("DEFAULT" , "version" )
65
66
# The short X.Y version.
205
206
206
207
latex_elements = {
207
208
# The paper size ('letterpaper' or 'a4paper').
208
- #'papersize': 'letterpaper',
209
+ # 'papersize': 'letterpaper',
209
210
# The font size ('10pt', '11pt' or '12pt').
210
- #'pointsize': '10pt',
211
+ # 'pointsize': '10pt',
211
212
# Additional stuff for the LaTeX preamble.
212
- #'preamble': '',
213
+ # 'preamble': '',
213
214
}
214
215
215
216
# Grouping the document tree into LaTeX files. List of tuples
You can’t perform that action at this time.
0 commit comments