Skip to content

Commit

Permalink
version 0.5.4
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuminjie committed Nov 6, 2019
1 parent 112a14d commit 7cc2fe0
Show file tree
Hide file tree
Showing 13 changed files with 65 additions and 19 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ dist
*.pyd
*.dll
*.so.*
.idea
.idea
*.dylib
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# OpenSeesPy


Pip Package for OpenSeesPy

Linux and Windows versions maintained by:

Minjie Zhu <zhum@oregonstate.edu>
Research Associate;
Civil and Construction Engineering; Oregon State University

Mac version maintained by:

Stevan Gavrilovic <steva44@hotmail.com>
PhD Candidate;
Structural and Earthquake Engineering;
University of British Columbia

[OpenSeesPy Documentation](https://openseespydoc.readthedocs.io/en/latest/index.html)

8 changes: 0 additions & 8 deletions README.rst

This file was deleted.

3 changes: 1 addition & 2 deletions openseespy/LICENSE.rst → openseespy/LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
LICENSE
=======
# LICENSE

Copyright (c) 2012-2017, The Regents of the University of California (Regents).
All rights reserved.
Expand Down
8 changes: 6 additions & 2 deletions openseespy/opensees/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,17 @@

from openseespy.opensees.winpy36.opensees import *

else:
elif sys.version_info[1] == 7:

from openseespy.opensees.winpy37.opensees import *

elif sys.version_info[1] == 8:

from openseespy.opensees.winpy38.opensees import *

elif sys.platform.startswith('darwin'):

raise RuntimeError('Mac OS X is not supported yet')
from openseespy.opensees.mac.opensees import *


else:
Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions openseespy/opensees/mac/libs/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
name = "openseespymac"
Empty file.
Empty file.
22 changes: 22 additions & 0 deletions openseespy/postprocessing/model.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import openseespy.opensees as ops
import matplotlib.pyplot as plt


def drawModel():
plt.figure()

etags = ops.getEleTags()
if etags is None:
return
if isinstance(etags, int):
etags = [etags]

for e in etags:
elenodes = ops.eleNodes(e)
for i in range(0, len(elenodes)):

[xi, yi] = ops.nodeCoord(elenodes[i-1])
[xj, yj] = ops.nodeCoord(elenodes[i])
plt.plot([xi, xj], [yi, yj], 'k')

plt.show()
2 changes: 1 addition & 1 deletion openseespy/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version = "0.4.2019.7"
version = "0.5.4"
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
pytest
matplotlib
numpy
15 changes: 10 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
with open('openseespy/version.py') as fp:
exec(fp.read(), about)

with open("README.rst", "r") as fh:
with open("README.md", "r") as fh:
long_description = fh.read()

setuptools.setup(
Expand All @@ -14,25 +14,30 @@
author_email="zhum@oregonstate.edu",
description="A OpenSeesPy package",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/openseespy/openseespy",
packages=setuptools.find_packages(),
package_data={
'': [
'opensees.so',
'opensees.pyd',
'LICENSE.rst',
'LICENSE.md',
'*.so',
'*.dll',
'*.dylib',
'*.so.*'],
},
license='LICENSE.rst',
license='LICENSE.md',
classifiers=[
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
'Operating System :: POSIX :: Linux',
'Operating System :: Microsoft :: Windows'],
'Operating System :: Microsoft :: Windows',
"Operating System :: MacOS :: MacOS X"],
platforms=[
"Linux",
'Windows'],
'Windows',
'Mac'],
python_requires='>=3.6',
zip_safe=False)

0 comments on commit 7cc2fe0

Please sign in to comment.