Skip to content

Commit

Permalink
allow ModelContainer(None) for subclass
Browse files Browse the repository at this point in the history
  • Loading branch information
braingram committed Apr 6, 2024
1 parent e0c6904 commit b6e4243
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions jwst/datamodels/container.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@ def __init__(self, init=None, asn_exptypes=None, asn_n_members=None,

self._memmap = kwargs.get("memmap", False)

if init is None:
init = []
if isinstance(init, list):
self._models = []
for item in init:
Expand Down

0 comments on commit b6e4243

Please sign in to comment.