-
Notifications
You must be signed in to change notification settings - Fork 68
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
Sample data is all over the place #1362
Comments
@remram44 you can control where it goes with via the cmake option: UVCMETRICS_TEST_DATA_DIRECTORY These are not uvcdat sample_data so actually your proposed location is just as wrong. We cannot put them under the build directory has they need to be persistent. A good/better location for this data is probably under share/metrics or something similar. |
I did not propose a location, just pointing out that sample_data location on Mac is also wrong. That is a second problem. |
|
@remram44 I don't really want to stick it inside the distribution because it's rather large. And you don't really want to download this data with every install. I got about 8 different version of uvcdat on my system at any given time. I could see it go under ${home}/.uvcdat though now that I think about it. |
now the thing about having it outside the distribution is that ONLY the one that builds get the data. So that's bad too... I guess under share/uvcmetrics is a good idea. I can always build with the option to alter the default path to my ${HOME} and not rebuild everytime. Let's go for ${CMAKE_INSTALL_PREFIX}/share/metrics |
+1 for moving to Just to throw out another option, we could keep it out of the prefix entirely, and put the data in the uvcdat-testdata repo alongside the baselines. VTK does this (keeps sample inputs and baselines together) and it works rather well. |
I would suggest that we follow this strategy:
|
@aashish24 this is implemented by #1363, in the sense that you can still set |
Thanks!, I/or others will have a look at it.
|
Fixed by #1390 |
On Linux, sample_data is in
${CMAKE_INSTALL_PREFIX}/sample_data
; this is fine.On Mac OS, sample_data ends up in
${CMAKE_INSTALL_PREFIX}/Library/Frameworks/Python.framework/Versions/Current/sample_data
.Anywhere, the data for uvcmetrics ends up in
${HOME}/uvcmetrics_test_data
; this is inconvenient and wrong.The text was updated successfully, but these errors were encountered: