Commit 2132287f authored by Feliks Kuba Kiszkurno's avatar Feliks Kuba Kiszkurno
Browse files

Some style related changes

parent 4681f455
from os.path import join as op_join
from os import getcwd as getcwd
from os import scandir as scandir
from os import listdir as listdir
import pandas as pd
......@@ -36,12 +34,10 @@ def sort_folders(folder_list):
def detect_experiments(path, sorted_by='name'):
exp_folders = []
sub_dirs = scandir(path)
#sub_dirs.sort()
for f in sub_dirs:
if f.is_dir():
potential_pvd_files = getfilesbyextension(f, ext="pvd")
if len(potential_pvd_files) == 1:
#exp_folders.append(potential_pvd_files)
exp_folders.append(f.name)
if sorted_by == 'name':
exp_folders_sorted = sort_folders(exp_folders)
......
import vtuIO
import os
def get_field_names(pvdio_object):
file_name = os.path.join(pvdio_object.folder,
......
......@@ -22,4 +22,4 @@ def read_data(experiments_to_include, field_to_read, points, results_folder):
point_names = list(experiments_results_param[reference_experiment].keys())
time_steps = experiments_results[reference_experiment].timesteps * SEC2A
return experiments_results, experiments_results_param, point_names, time_steps
\ No newline at end of file
return experiments_results, experiments_results_param, point_names, time_steps
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment