summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2022-08-15 17:30:27 +0200
committerAnton Khirnov <anton@khirnov.net>2022-08-15 17:30:27 +0200
commit7c60723256916cdf501b8767654fb78d355023b2 (patch)
tree70169b372aa956d431d9e6f0ed7deda79247064a
parent32fa495b17d5b84e398a70c2d3338486b40dbfe7 (diff)
simdata: drop gf loading
It is far too slow for large data files.
-rw-r--r--simdata.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/simdata.py b/simdata.py
index dd5398e..37bff6f 100644
--- a/simdata.py
+++ b/simdata.py
@@ -94,9 +94,6 @@ class SimulationData(object):
"A dictionary of { basename : DataFile } items representing the data files. The basename is the file name without the .h5 extension"
df = None
- "A dictionary of all the { gridfunction : [datafiles it is located in] } pairs for this set of data"
- gf = None
-
# per-refinement level parameters
rl = None
@@ -105,7 +102,6 @@ class SimulationData(object):
def __init__(self, dirname):
self.dirname = os.path.abspath(dirname)
self.df = {}
- self.gf = {}
# open all the hdf5 files in the dir
for f in os.listdir(dirname):
@@ -116,12 +112,6 @@ class SimulationData(object):
if len(self.df) == 0:
raise ValueError('No HDF5 data files in the directory.')
- for df in self.df.values():
- for ds in df.datasets:
- if ds.name in self.gf:
- self.gf[ds.name].append(df)
- self.gf[ds.name] = [df]
-
# pick a representative datafile and get the grid properties from it
if 'H' in self.df:
df = self.df['H']