Skip to content

Commit c31778b

Browse files
authored
Merge pull request #192 from bkemper24/main
minor doc updates for Sphinx
2 parents 7bae03c + 9747bf2 commit c31778b

File tree

5 files changed

+20
-17
lines changed

5 files changed

+20
-17
lines changed

doc/source/conf.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,15 @@
4747

4848
autosummary_generate = True
4949
numpydoc_show_class_members = False
50-
autodoc_default_flags = ['show-inheritance']
50+
autodoc_default_options = {'show-inheritance': True}
5151
autoclass_content = 'class'
5252

5353
intersphinx_mapping = {
5454
'python': ('https://docs.python.org/', None),
5555
'pandas': ('http://pandas.pydata.org/pandas-docs/version/0.19.2/', None),
5656
'numpy': ('http://docs.scipy.org/doc/numpy/', None),
5757
'scipy': ('http://docs.scipy.org/doc/scipy/reference/', None),
58-
'matplotlib': ('http://matplotlib.sourceforge.net/', None)
58+
'matplotlib': ('https://matplotlib.org/stable/', None),
5959
}
6060

6161
# Add any paths that contain templates here, relative to this directory.
@@ -74,7 +74,7 @@
7474

7575
# General information about the project.
7676
project = 'SWAT'
77-
copyright = '2016 SAS Institute Inc. All Rights Reserved.'
77+
copyright = '%Y SAS Institute Inc. All Rights Reserved.'
7878
author = 'SAS'
7979

8080
# The version info for the project you're documenting, acts as replacement for
@@ -94,7 +94,7 @@
9494
#
9595
# This is also used if you do content translation via gettext catalogs.
9696
# Usually you set "language" from the command line for these cases.
97-
language = None
97+
# language = None
9898

9999
# There are two options for replacing |today|: either, you set today to some
100100
# non-false value, then it is used:
@@ -142,17 +142,17 @@
142142

143143
html_theme = 'sphinx_rtd_theme'
144144

145-
html_context = {
146-
'css_files': ['_static/custom.css'],
147-
}
145+
# html_context = {
146+
# 'css_files': ['_static/custom.css'],
147+
# }
148148

149149
# Theme options are theme-specific and customize the look and feel of a theme
150150
# further. For a list of options available for each theme, see the
151151
# documentation.
152152
# html_theme_options = {}
153153

154154
# Add any paths that contain custom themes here, relative to this directory.
155-
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
155+
# html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
156156

157157
# The name for this set of Sphinx documents. If None, it defaults to
158158
# "<project> v<release> documentation".

doc/source/getting-started.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ synonyms for ``user``, and ``protocol`` is a synonym for ``port``.
261261

262262
You can specify as many of the ``host`` lines as possible. The ``port`` field
263263
is optional. If it is left off, all ports will use the same password.
264-
Hostnames much match the hostname used in the :class:`CAS` constructor exactly. It does
264+
Hostnames must match the hostname used in the :class:`CAS` constructor exactly. It does
265265
not do any DNS expanding of the names. So 'host1' and 'host1.my-company.com' are
266266
considered two different hosts.
267267

swat/cas/connection.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,8 @@ class CAS(object):
170170
User-definable name for the session.
171171
nworkers : int or long, optional
172172
Number of worker nodes to use.
173+
This parameter is only valid
174+
with the binary (not REST) protocol.
173175
authinfo : string or list-of-strings, optional
174176
The filename or list of filenames of authinfo/netrc files used
175177
for authentication.
@@ -240,7 +242,7 @@ class CAS(object):
240242
>>> conn = swat.CAS('mycashost.com', 5570, locale='es_US')
241243
242244
To limit the number of worker nodes in a grid, you use the nworkers=
243-
parameter.
245+
parameter (binary protocol only).
244246
245247
>>> conn = swat.CAS('mycashost.com', 5570, nworkers=4)
246248
@@ -1142,7 +1144,7 @@ def del_results_hooks(self, name):
11421144
Delete all post-processing functions for an action
11431145
11441146
Parameters
1145-
---------
1147+
----------
11461148
name : string
11471149
Full name of action (actionset.actionname)
11481150

swat/cas/datamsghandlers.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1183,7 +1183,8 @@ def getrow(self, row):
11831183

11841184

11851185
class Image(CASDataMsgHandler):
1186-
"""CAS data message handler for images.
1186+
'''
1187+
Create an Image data message handler.
11871188
11881189
Parameters
11891190
----------
@@ -1220,8 +1221,7 @@ class Image(CASDataMsgHandler):
12201221
behavior should be similar to that of the image.loadImages_ CAS action for loading
12211222
server-side images:
12221223
1223-
.. _image.loadImages: https://go.documentation.sas.com/doc/en/pgmsascdc/v_028/casactml/casactml_image_details22
1224-
.htm # noqa: E501
1224+
.. _image.loadImages: https://go.documentation.sas.com/doc/en/pgmsascdc/v_028/casactml/casactml_image_details22.htm
12251225
12261226
Although images will be stored in binary format to a CAS table column
12271227
labeled "_image_", the CAS table metadata will not indicate that this column should
@@ -1236,7 +1236,8 @@ class Image(CASDataMsgHandler):
12361236
>>> conn.addtable(table='mytable', **dmh.args.addtable).casTable
12371237
... CASTable('MYTABLE', caslib='CASUSER(user)')
12381238
1239-
"""
1239+
''' # noqa: E501
1240+
12401241
def __init__(self, data, nrecs=1000, subdirs=True):
12411242
# To maintain Py2.7 compatibility, use strings instead of Paths.
12421243
if type(data).__module__ == 'pathlib':

swat/cas/table.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5886,14 +5886,14 @@ def drop_duplicates(self, casout, subset=[]):
58865886
a subset of columns when checking for duplicate rows.
58875887
58885888
Parameters
5889-
--------
5889+
----------
58905890
casout : string or :class:`CASTable` or dict
58915891
The output table.
58925892
subset : string or list-of-strings, optional
58935893
The subset of columns to consider when checking for duplicate rows.
58945894
58955895
Returns
5896-
--------
5896+
-------
58975897
:class:`CASTable`
58985898
The input table without duplicate rows.
58995899
'''

0 commit comments

Comments
 (0)