Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copy missing ApoA1 benchmarking file into examples/ on install #2261

Closed
wants to merge 2 commits into from

Conversation

jchodera
Copy link
Member

@peastman: The apoa1.pdb file (required by benchmark.py for some benchmarks) was not copied into examples on installation. This PR adds that file to the installation.

I notice there are other files in the examples/ directory that are also not installed, such as input-charmm36-tip5p.dms. Should these other files be included as well?

Is there a more robust way to do this with CMakeLists.txt than to list all the files explicitly, especially since we seem to forget to modify this file when new example files are added?

@jchodera jchodera changed the title Some files were missing from examples/ on installation Copy missing ApoA1 benchmarking file into examples/ on install Feb 13, 2019
@peastman
Copy link
Member

We could switch it to use wildcard patterns. For example, *.pdb rather than listing the PDB files individually.

@tobigithub
Copy link

tnx,
just a quick solution as reference for others, command on LINUX to get PDB:

https://raw.githubusercontent.com/pandegroup/openmm/master/examples/apoa1.pdb

@jchodera
Copy link
Member Author

We could switch it to use wildcard patterns. For example, *.pdb rather than listing the PDB files individually.

Sounds great!

I'd still love to see some organization of the structure within the examples directory, along with a clear README.md to describe what is in there, but that would probably have to wait for a more major release.

@peastman
Copy link
Member

Should I go ahead and merge this, or wait for you to redo it with wildcards?

@jchodera
Copy link
Member Author

@peastman: I've switched these to wildcards.

I'd still love to introduce some subdirectory structure and READMEs into the examples/ directory at some point, if you'd be OK with it. Vomiting a bunch of unrelated files into a single examples/ directory just seems unkind to our users.

@jchodera
Copy link
Member Author

@peastman: Well, it looks like CMake doesn't understand wildcards:

CMake Error at examples/cmake_install.cmake:68 (file):
  file INSTALL cannot find
  "/Users/travis/build/pandegroup/openmm/examples/*.py".
Call Stack (most recent call first):
  cmake_install.cmake:243 (include)

How about you take this over and open your own PR with whatever solution you prefer?

@peastman
Copy link
Member

It doesn't work like that. You have to use file(GLOB ...) to build the list of matching files. https://cmake.org/cmake/help/v3.0/command/file.html.

I'd still love to introduce some subdirectory structure

Sounds very reasonable.

@jchodera jchodera mentioned this pull request Jul 1, 2019
@peastman
Copy link
Member

peastman commented Aug 8, 2019

Closing this since the problem has already been fixed.

@peastman peastman closed this Aug 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants