Skip to content

Commit

Permalink
Remove check for string.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArneVoss committed Jan 28, 2025
1 parent 16d9fd7 commit afe9bc8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions loadskernel/io_functions/read_op2.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,9 @@
class OP2():
"""Class for reading Nastran op2 files and nas2cam data files."""

def __init__(self, filename=None):
def __init__(self, filename):
self._fileh = None
if isinstance(filename, str):
self._op2_open(filename)
self._op2_open(filename)

def __del__(self):
if self._fileh:
Expand Down

0 comments on commit afe9bc8

Please sign in to comment.