diff --git a/pyproject.toml b/pyproject.toml index fc5306b056..a6c4ca0bb1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "opensees" -version = "0.0.62" +version = "0.0.65" authors = [ {name="Claudio M. Perez"} # <50180406+claudioperez@users.noreply.github.com>" diff --git a/src/opensees/__init__.py b/src/opensees/__init__.py index df6cdf3bf3..334b4c5fa1 100644 --- a/src/opensees/__init__.py +++ b/src/opensees/__init__.py @@ -1,4 +1,10 @@ -__version__ = "0.0.61" +#===----------------------------------------------------------------------===# +# +# STAIRLab -- STructural Artificial Intelligence Laboratory +# +#===----------------------------------------------------------------------===# +# +__version__ = "0.0.65" # Imports for this module import math diff --git a/src/opensees/__main__.py b/src/opensees/__main__.py index 045662ad98..f720ed0112 100755 --- a/src/opensees/__main__.py +++ b/src/opensees/__main__.py @@ -1,4 +1,10 @@ #!/usr/bin/env python3 +#===----------------------------------------------------------------------===# +# +# STAIRLab -- STructural Artificial Intelligence Laboratory +# +#===----------------------------------------------------------------------===# +# """ This file implements the primary command line interface for the package which is invoked by running: @@ -31,6 +37,8 @@ -v/--verbose + + --no-load Do not pre-load the OpenSeesRT library. """ """ diff --git a/src/opensees/openseespy.py b/src/opensees/openseespy.py index f498334149..2b394e7d7c 100644 --- a/src/opensees/openseespy.py +++ b/src/opensees/openseespy.py @@ -1,3 +1,10 @@ +#===----------------------------------------------------------------------===# +# +# STAIRLab -- STructural Artificial Intelligence Laboratory +# Berkeley, CA +# +#===----------------------------------------------------------------------===# +# """ This module implements the OpenSeesPy interface. Imports can be performed exactly as one would @@ -399,8 +406,14 @@ def setFactor(self, factor): def element(self, type, tag, *args, **kwds): if tag is None: - tag = 0 - for existing_tag in self.getEleTags(): + tag = 1 + ele_tags = self.getEleTags() + if ele_tags is None: + ele_tags = [] + elif isinstance(ele_tags, int): + ele_tags = [ele_tags] + + for existing_tag in ele_tags: if tag <= existing_tag: tag = existing_tag + 1 diff --git a/src/opensees/series.py b/src/opensees/series.py index f1a7208298..b86f5aec7a 100644 --- a/src/opensees/series.py +++ b/src/opensees/series.py @@ -1,3 +1,5 @@ + + import math def triangle(t, period=2*math.pi, amplitude=2.0): diff --git a/src/opensees/tcl.py b/src/opensees/tcl.py index 4f1617d962..3463fab799 100644 --- a/src/opensees/tcl.py +++ b/src/opensees/tcl.py @@ -1,3 +1,10 @@ +#===----------------------------------------------------------------------===# +# +# STAIRLab -- STructural Artificial Intelligence Laboratory +# Berkeley, CA +# +#===----------------------------------------------------------------------===# +# import os import sys import json