From 91fdc10d46415401e658c5ffbbddc6ebba3a49d8 Mon Sep 17 00:00:00 2001 From: Paul Romano Date: Mon, 22 Jul 2019 07:12:23 -0500 Subject: [PATCH] Get rid of erroneous check in ParticleFilter.from_hdf5 --- openmc/filter.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/openmc/filter.py b/openmc/filter.py index 52ff8638e..8527ca9b9 100644 --- a/openmc/filter.py +++ b/openmc/filter.py @@ -583,10 +583,6 @@ class ParticleFilter(Filter): + cls.short_name.lower() + "' but got '" + group['type'][()].decode() + " instead") - if 'meshes' not in kwargs: - raise ValueError(cls.__name__ + " requires a 'meshes' keyword " - "argument.") - particles = [b.decode() for b in group['bins'][()]] filter_id = int(group.name.split('/')[-1].lstrip('filter ')) return cls(particles, filter_id=filter_id)