Replies: 1 comment
-
The fact that we default to EDR and then try:
self.collect(stride=stride, autosave=False)
except IOError as err:
if err.errno == errno.ENOENT:
self.convert_edr()
self.collect(stride=stride, autosave=False)
else:
logger.exception(err)
raise would be better in
In short, the easiest thing would be to remove the Ultimately, exactly the same thing happens with (Sidenote: A while back we switched to using EDR files by default because they are more compact. Unfortunately, we still do what seems a waste, namely, converting EDR free energy data to XVG because we haven't implemented an actually EDR reader (with It would also be really good if someone found the time to add a EDR reader to alchemlyb alchemistry/alchemlyb#67 because then we wouldn't need to do the conversion.) |
Beta Was this translation helpful? Give feedback.
-
The docs suggest using
.collect()
and.analyze()
, but there's a couple of issues as far as I can tell:Gsolv.setup()
, usingedr=True
, sets the.mdp
optionseparate-dhdl-file = no
. There are therefore no.xvg
files produced.dgdl_xvg()
function looks for a file whose name is<deffnm>.xvg
, swapping out the bit in tags, but the default name for the file produced when using-dhdl
isdhdl.xvg
.I've switched to using the
alchemlyb
implementation of these functions, but it would be good to know if I was doing something wrong and to update the above example if not.PS I can see that
analyze()
handles theIOError
thrown bydgdl_xvg()
and looks for the.edr
file instead. Maybe I'm not supposed to call.collect()
before.analyze()
?Beta Was this translation helpful? Give feedback.
All reactions