Skip to content

Commit e4de87e

Browse files
removed outdated files
1 parent fe6f8f4 commit e4de87e

File tree

7 files changed

+7
-93
lines changed

7 files changed

+7
-93
lines changed

pyMCDS.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class pyMCDS:
2525
Hierarchical container for all of the data retrieved by parsing the xml
2626
file and the files referenced therein.
2727
'''
28-
def __init__(self, xml_file, output_path):
28+
def __init__(self, xml_file, output_path='.'):
2929
self.data = self._read_xml(xml_file, output_path)
3030

3131
def get_cells_df(self):
@@ -52,6 +52,8 @@ def get_menv_species_list(self):
5252
species_list = []
5353
for name in self.data['continuum_variables']:
5454
species_list.append(name)
55+
56+
return species_list
5557

5658
def get_concentrations(self, species):
5759
'''
@@ -67,14 +69,17 @@ def get_concentrations(self, species):
6769
conc_arr = self.data['continuum_variables'][species]['data']
6870
return conc_arr
6971

72+
def get_time(self):
73+
return self.data['metadata']['current_time']
74+
7075

7176
def _read_xml(self, xml_file, output_path='.'):
7277
'''
7378
Does the actual work of initializing MultiCellDS by parsing the xml
7479
'''
7580

7681
output_path = Path(output_path)
77-
xml_file = output_path / 'output00000001.xml'
82+
xml_file = output_path / xml_file
7883
try:
7984
tree = TE.parse(xml_file)
8085
except:

read_MultiCellDS_xml.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# %%
21
import xml.etree.ElementTree as TE
32
import numpy as np
43
import pandas as pd

test-output/initial_mesh0.mat

-12.9 MB
Binary file not shown.

test-output/output00000001.xml

Lines changed: 0 additions & 90 deletions
This file was deleted.
-1.56 MB
Binary file not shown.
-4.54 MB
Binary file not shown.
-19.3 MB
Binary file not shown.

0 commit comments

Comments
 (0)