Skip to content

Commit 71a5b36

Browse files
committed
Imporving documentation
1 parent c1fb04f commit 71a5b36

File tree

7 files changed

+41
-66
lines changed

7 files changed

+41
-66
lines changed

CHANGELOG.rst

+6
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
Changelog
33
=========
44

5+
0.0.1 (2020-06-12)
6+
------------------
7+
8+
* Integrating CI
9+
10+
511
0.0.0 (2020-06-12)
612
------------------
713

CONTRIBUTING.rst

+1-58
Original file line numberDiff line numberDiff line change
@@ -30,61 +30,4 @@ If you are proposing a feature:
3030

3131
* Explain in detail how it would work.
3232
* Keep the scope as narrow as possible, to make it easier to implement.
33-
* Remember that this is a volunteer-driven project, and that code contributions are welcome :)
34-
35-
Development
36-
===========
37-
38-
To set up `py_dss_interface` for local development:
39-
40-
1. Fork `py_dss_interface <https://github.com/PauloRadatz/py_dss_interface>`_
41-
(look for the "Fork" button).
42-
2. Clone your fork locally::
43-
44-
git clone [email protected]:PauloRadatz/py_dss_interface.git
45-
46-
3. Create a branch for local development::
47-
48-
git checkout -b name-of-your-bugfix-or-feature
49-
50-
Now you can make your changes locally.
51-
52-
4. When you're done making changes run all the checks and docs builder with `tox <https://tox.readthedocs.io/en/latest/install.html>`_ one command::
53-
54-
tox
55-
56-
5. Commit your changes and push your branch to GitHub::
57-
58-
git add .
59-
git commit -m "Your detailed description of your changes."
60-
git push origin name-of-your-bugfix-or-feature
61-
62-
6. Submit a pull request through the GitHub website.
63-
64-
Pull Request Guidelines
65-
-----------------------
66-
67-
If you need some code review or feedback while you're developing the code just make the pull request.
68-
69-
For merging, you should:
70-
71-
1. Include passing tests (run ``tox``) [1]_.
72-
2. Update documentation when there's new API, functionality etc.
73-
3. Add a note to ``CHANGELOG.rst`` about the changes.
74-
4. Add yourself to ``AUTHORS.rst``.
75-
76-
.. [1] If you don't have all the necessary python versions available locally you can rely on Travis - it will
77-
`run the tests <https://travis-ci.org/PauloRadatz/py_dss_interface/pull_requests>`_ for each change you add in the pull request.
78-
79-
It will be slower though ...
80-
81-
Tips
82-
----
83-
84-
To run a subset of tests::
85-
86-
tox -e envname -- pytest -k test_myfeature
87-
88-
To run all the test environments in *parallel* (you need to ``pip install detox``)::
89-
90-
detox
33+
* Remember that this is a volunteer-driven project, and that code contributions are welcome :)

README.rst

-5
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,6 @@ Installation
7070

7171
pip install py-dss-interface
7272

73-
You can also install the in-development version with::
74-
75-
pip install https://github.com/PauloRadatz/py_dss_interface/archive/master.zip
76-
77-
7873
Documentation
7974
=============
8075

docs/index.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Contents
88
readme
99
installation
1010
usage
11-
reference/index
11+
modules
1212
contributing
1313
authors
1414
changelog

docs/modules.rst

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
src
2+
===
3+
4+
.. toctree::
5+
:maxdepth: 4
6+
7+
py_dss_interface

docs/py_dss_interface.rst

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
py\_dss\_interface package
2+
==========================
3+
4+
Submodules
5+
----------
6+
7+
py\_dss\_interface.DSS module
8+
-----------------------------
9+
10+
.. automodule:: py_dss_interface.DSS
11+
:members:
12+
:undoc-members:
13+
:show-inheritance:
14+
15+
16+
Module contents
17+
---------------
18+
19+
.. automodule:: py_dss_interface
20+
:members:
21+
:undoc-members:
22+
:show-inheritance:

src/py_dss_interface/DSS.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111
class DSSDLL:
1212

1313
def __init__(self, dll_folder=None):
14+
"""
15+
Class to create an OpenDSS object
16+
:param dll_folder: None will use the OpenDSS available within the package. The DDLL path allows to use a different OpenDSS
17+
"""
1418

1519
if dll_folder == None:
1620
script_path = os.path.dirname(os.path.abspath(__file__))
@@ -19,7 +23,6 @@ def __init__(self, dll_folder=None):
1923
self.opendss_started = False
2024

2125
if platform.architecture()[0] == "64bit":
22-
2326
try:
2427
os.chdir(os.path.join(dll_folder, "64"))
2528
self.dssObj = ctypes.WinDLL("OpenDSSDirect.dll")
@@ -45,7 +48,6 @@ def __init__(self, dll_folder=None):
4548
# print("OpenDSS Failed to Start")
4649

4750
def _allocate_memory(self):
48-
4951
self.dssObj.ActiveClassS.restype = ctypes.c_char_p
5052

5153
self.dssObj.BUSF.restype = ctypes.c_double

0 commit comments

Comments
 (0)