Skip to content
This repository was archived by the owner on Apr 23, 2021. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions simphony/bench/cuds_file_bench.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from simphony.bench.util import bench
from simphony.io.h5_cuds import H5CUDS
from simphony.cuds.particles import Particle
from simphony.cuds.particles import Particle, Particles

particles = [
Particle(coordinates=(0.0, 1.1, 2.2)) for i in range(10000)]
Expand Down Expand Up @@ -55,8 +55,7 @@ def __init__(self):

def __enter__(self):
self._file = H5CUDS.open(self._filename)
pc = self._file.add_particles("test")
return pc
return self._file.add_particles(Particles("test"))

def __exit__(self, type, value, tb):
if os.path.exists(self._filename):
Expand Down