Skip to content

Commit 0a8eed5

Browse files
authored
Merge pull request #203 from lanl/tutorial2
Updated existing tutorial and added new tutorial with data cards
2 parents 4ffedb9 + f72bb2d commit 0a8eed5

File tree

5 files changed

+2460
-96
lines changed

5 files changed

+2460
-96
lines changed

dsi/core.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1440,7 +1440,7 @@ def index(self, local_loc, remote_loc, isVerbose=False):
14401440
st_dict['n_links'] = []
14411441
st_dict['uid'] = []
14421442
st_dict['gid'] = []
1443-
st_dict['uuid'] = []
1443+
#st_dict['uuid'] = []
14441444
st_dict['file_remote'] = []
14451445

14461446
for file in file_list:
@@ -1462,7 +1462,7 @@ def index(self, local_loc, remote_loc, isVerbose=False):
14621462
st_dict['n_links'].append(st.st_nlink)
14631463
st_dict['uid'].append(st.st_uid)
14641464
st_dict['gid'].append(st.st_gid)
1465-
st_dict['uuid'].append(self.gen_uuid(st))
1465+
#st_dict['uuid'].append(self.gen_uuid(st))
14661466
st_dict['file_remote'].append(rfilepath)
14671467
st_list.append(st)
14681468

@@ -1732,7 +1732,7 @@ def gen_uuid(self, st):
17321732
unique_str = f"{inode}-{ctime}"
17331733

17341734
file_uuid = uuid.uuid5(uuid.NAMESPACE_URL, unique_str)
1735-
print(f"UUID:{file_uuid}")
1735+
#print(f"UUID:{file_uuid}")
17361736
return file_uuid
17371737

17381738

dsi/plugins/file_reader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ def add_rows(self) -> None:
618618
simulation_dict = OrderedDict({'sim_id': [], 'sim_datetime': []})
619619

620620
sim_num = 1
621-
all_runs = sorted([f.name for f in os.scandir(self.folder_path) if f.is_dir()])
621+
all_runs = sorted([f.name for f in os.scandir(self.folder_path) if f.is_dir() and not f.name.startswith('.') ])
622622
for run_name in all_runs:
623623
input_file = f"{self.folder_path}/{run_name}/clover.in"
624624

13.3 KB
Binary file not shown.

0 commit comments

Comments
 (0)