mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 13:15:39 -04:00
Get rid of erroneous check in ParticleFilter.from_hdf5
This commit is contained in:
parent
09be1f9293
commit
91fdc10d46
1 changed files with 0 additions and 4 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue