Skip to content

Commit

Permalink
trying to fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveDoyle2 committed Oct 6, 2023
1 parent 6034a86 commit 2a549cd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pyNastran/dev/bdf_vectorized3/cards/grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ def parse_cards(self) -> None:
ids = []
for i, (idsi, comment) in enumerate(self.cards):
idsi2 = expand_thru(idsi)
assert min(idsi2) > 0, idsi
ids.extend(idsi2)
self.comment[i] = comment

Expand All @@ -96,6 +97,10 @@ def _sort(self) -> None:
if not np.array_equal(uarg, iarg):
self.ids = self.ids[iarg]

def geom_check(self, missing: dict[str, np.ndarray]):
bad_ids = self.ids[self.ids <= 0]
assert self.ids.min() > 0, bad_ids

def write_file(self, bdf_file: TextIOLike,
size: int=8, is_double: bool=False,
write_card_header: bool=False) -> None:
Expand Down
2 changes: 2 additions & 0 deletions pyNastran/dev/bdf_vectorized3/cards/test/all_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@
from pyNastran.dev.bdf_vectorized3.cards.test.test_vector_plot_elements import TestPlotElements
from pyNastran.dev.bdf_vectorized3.cards.test.test_vector_rigid import *
from pyNastran.dev.bdf_vectorized3.cards.test.test_vector_rods import *
from pyNastran.dev.bdf_vectorized3.cards.test.test_vector_sets import *
from pyNastran.dev.bdf_vectorized3.cards.test.test_vector_shells import TestShells
from pyNastran.dev.bdf_vectorized3.cards.test.test_vector_solids import *
from pyNastran.dev.bdf_vectorized3.cards.test.test_vector_springs import *
from pyNastran.dev.bdf_vectorized3.cards.test.test_vector_superelements import *


if __name__ == '__main__': # pragma: no cover
Expand Down

0 comments on commit 2a549cd

Please sign in to comment.