2 ms·
Seeing the code, I don't get why this was encapsulated in a function, considering they don't even take a path argument. It could easily have been just a onelin
by dr_zoidberg 7y ago
Seeing the code, I don't get why this was encapsulated in a function, considering they don't even take a path argument.
It could easily have been just a oneliner:
gaussian_outputfils = sorted(glob.glob('*.out'))
Of, if it needed function form:
def read_gaussian_outputfiles(path):
return sorted(glob.glob(f'{path}/*.out'))