vvoelz / biceps

Bayesian inference of conformational populations
https://github.com/vvoelz/biceps
Other
12 stars 3 forks source link

Reading YAML #31

Closed robraddi closed 6 years ago

robraddi commented 6 years ago

Example code for reading YAML file:


import yaml,io
with io.open('./traj_lambda0.00.yaml','r') as file:
loaded_data = yaml.load(file)
print('%s'%loaded_data).replace(" '","\n\n '")
yunhuige commented 6 years ago

Function added in the new toolbox.py: https://github.com/vvoelz/nmr-biceps/blob/master/BICePs_2.0/src/toolbox.py