Skip to content

Commit

Permalink
Use dss_python==0.10.1 (#54)
Browse files Browse the repository at this point in the history
* Update dss_python to 0.10.1.
* Update tests to use os.linesep -- fixed in DSS C-API 0.10.1, previous was always `\r\n`, independent of the OS.
* Increment version (micro).
  • Loading branch information
PMeira authored Feb 17, 2019
1 parent feb5ab1 commit 64e03a1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion opendssdirect/_version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# -*- coding: utf-8 -*-
__version__ = "0.3.6"
__version__ = "0.3.7"
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def run(self):
author_email="[email protected]",
license="BSD-compatible",
packages=find_packages(),
install_requires=["future", "six", "dss_python==0.10.0"],
install_requires=["future", "six", "dss_python==0.10.1"],
extras_require={
"extras": ["pandas", "matplotlib", "networkx"],
"dev": [
Expand Down
8 changes: 4 additions & 4 deletions tests/test_opendssdirect.py
Original file line number Diff line number Diff line change
Expand Up @@ -1538,8 +1538,8 @@ def test_13Node_Element(dss):
def test_13Node_Executive(dss):
assert dss.Executive.Command(1) == u"New"
assert (
dss.Executive.CommandHelp(1)
== u"Create a new object within the DSS. Object becomes the active object\r\nExample: New Line.line1 ..."
dss.Executive.CommandHelp(1).replace(os.linesep, '\n')
== u"Create a new object within the DSS. Object becomes the active object\nExample: New Line.line1 ..."
)
assert (
dss.Executive.NumCommands() == 107
Expand Down Expand Up @@ -2021,8 +2021,8 @@ def test_13Node_PDElements(dss):
def test_13Node_Properties(dss): # TODO!! rework DSSProperty
dss.dss_lib.DSSProperty_Set_Index(0) # TODO?
assert (
dss.Properties.Description()
== u"Name of bus to which first terminal is connected.\r\nExample:\r\nbus1=busname (assumes all terminals connected in normal phase order)\r\nbus1=busname.3.1.2.0 (specify terminal to node connections explicitly)"
dss.Properties.Description().replace(os.linesep, '\n')
== u"Name of bus to which first terminal is connected.\nExample:\nbus1=busname (assumes all terminals connected in normal phase order)\nbus1=busname.3.1.2.0 (specify terminal to node connections explicitly)"
)
assert dss.Properties.Name() == u"bus1"

Expand Down

0 comments on commit 64e03a1

Please sign in to comment.