Skip to content

Conversation

drroe
Copy link
Contributor

@drroe drroe commented Sep 12, 2019

Unimaginatively named slope (because I don't want to keep typing finitedifference):

  [help slope]
	<dset0> [<dset1> ...] [out <outfile>] [name <name>]
	[type {forward|backward|central}]
  Calculate finite difference (default forward) of given data sets.

This PR also slightly reorganizes the integrate command and underlying routines. The integrate functions have been moved from DataSet_Mesh to DataSet_1D, which I think makes more sense (and avoids having to convert any given set to Mesh any time you want to integrate). The integrate command now saves the integral values to a data set (not sure why I didn't do that in the first place) and has a new keyword to write these values to a file, intout <file>.

Documentation updated for both. Test added for slope.

@drroe drroe added enhancement doc New Command New command for cpptraj labels Sep 12, 2019
@drroe drroe self-assigned this Sep 12, 2019
@lgtm-com
Copy link

lgtm-com bot commented Sep 12, 2019

This pull request fixes 1 alert when merging 78a5ea7 into c38a771 - view on LGTM.com

fixed alerts:

  • 1 for FIXME comment

@drroe
Copy link
Contributor Author

drroe commented Sep 12, 2019

All of the build failures appear to be related to external dependencies. E.g. a Travis failure:

$ sudo -E apt-add-repository -y "ppa:ubuntu-toolchain-r/test"
gpg: keyring `/tmp/tmp_mg2m54v/secring.gpg' created
gpg: keyring `/tmp/tmp_mg2m54v/pubring.gpg' created
gpg: requesting key BA9EF27F from hkp server keyserver.ubuntu.com
gpgkeys: key 60C317803A41BA51845E371A1E9377A2BA9EF27F can't be retrieved
gpg: no valid OpenPGP data found.
gpg: Total number processed: 0
$ sudo -E apt-add-repository -y "ppa:george-edison55/precise-backports"
gpg: keyring `/tmp/tmp28ynbjkm/secring.gpg' created
gpg: keyring `/tmp/tmp28ynbjkm/pubring.gpg' created
gpg: requesting key 828AB726 from hkp server keyserver.ubuntu.com
gpgkeys: key B118CD3C377DF930EDD06C67084ECFC5828AB726 can't be retrieved
gpg: no valid OpenPGP data found.

This leads to a There were unauthenticated packages error and the build fails.

The appveyor failure happens when trying to download and compile NetCDF:

Exception calling "DownloadFile" with "2" argument(s): "The remote server 
returned an error: (502) Bad Gateway."

This could be a temporary hiccup so I'll try to retrigger that. Not sure what to do yet about Travis.. could be a temporary network issue or something deeper.

@drroe
Copy link
Contributor Author

drroe commented Sep 12, 2019

Appveyor issue was actually https://app.box.com/shared/static/cc04s69672igsbfb4n3efbmv4hxlycu2.7z which now seems to work in my browser. Trying again.

@lgtm-com
Copy link

lgtm-com bot commented Sep 12, 2019

This pull request fixes 1 alert when merging 2d58723 into c38a771 - view on LGTM.com

fixed alerts:

  • 1 for FIXME comment

@drroe drroe merged commit 8ad769d into Amber-MD:master Sep 13, 2019
@drroe drroe deleted the addslope branch September 13, 2019 11:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc enhancement New Command New command for cpptraj
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant