diff --git a/website/raw/FAQ.mkdown b/website/raw/FAQ.mkdown index dbd21bdecf796f9da85c13fdfec72a43ad12ff78..735453586e4337e63cfe8e98377259f31d28751f 100644 --- a/website/raw/FAQ.mkdown +++ b/website/raw/FAQ.mkdown @@ -2,8 +2,20 @@ title: FAQ - Frequently Answered Questions #FAQ - Frequently Answered Questions - 1. **Which licensing does Openstructure come with?** - Openstructure is released under GNU-LGPL license +**Which licensing does Openstructure come with?** + +Openstructure is released under GNU-LGPL license - * **Why another molecular Viewer?** - Openstructure is not aiming to be a Viewer, but more a molecular modelling platform, a toolkit. It features nice graphics, though! +**Why another molecular Viewer?** + +Openstructure is not aiming to be a Viewer, but more a molecular modelling platform, a toolkit. It features nice graphics, though! + +**How to I load all PDB files in a directory?** + +The python glob module can be used to match files in a certain directory against a glob pattern. Then use LoadPDB as you normally would. + + ::::python + import glob + pdbs=[] + for pdb_file in glob.glob(os.path.join(dir_path, '*.pdb')): + pdbs.append(io.LoadPDB(os.path.join(dir_path, pdb_file))) \ No newline at end of file