-
Notifications
You must be signed in to change notification settings - Fork 1
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
--mode all,random-asset #43
Comments
another mode could be |
I like |
@yarikoptic To be clear, do you want |
I think we can be fine with |
This would require the |
for each path it can discover the dandiset by location of the |
@yarikoptic Should running |
ideally yes . saving concerns only the |
@yarikoptic Problem: When saving test results obtained with One option to determine the MatNWB version when testing against pynwb would be to just query GitHub for the tag of MatNWB's latest release and not download any code, but this could lead to |
I asked chatgpt to give me a function which would do
which I tested to work on drogon: (base) dandi@drogon:/tmp$ MATLABPATH=/tmp/matnwb/clone/:/tmp/mymat matlab -nodesktop -batch "disp(getGitTagForFunction('nwbRead'))"
v2.6.0.1-2-gda49922 so if we switch to use clone of the matnwb repo -- it should work. As for master export -- I do not see how they could have potentially made it work to provide a version based on the tags, and we also don't in those projects which use versioneer and your |
@yarikoptic Why should we switch to using a clone of the matnwb repo? That would mean we'd frequently be using unreleased code, which seems like not the best idea. It'd also increase the number of different matnwb versions listed in Moreover, if we're using a clone of the matnwb repo, what's the point of running a matlab script to get the Honestly, I prefer my suggested solution of querying GitHub for the latest matnwb version whenever matnwb isn't downloaded. |
To say the truth I forgot that we are using released version ATM, but I remain of an opinion that a
|
@yarikoptic So, if we switch to cloning, exactly when should the script update the clone to use the latest release? |
ATM we have at
install_matnwb at the beginning of the sweep (check ) and in test_files (if testname includes matnwb ). so it seems that ATM we do not upgrade at all if installation already exists. For the purpose of this issue could be just that, no updates etc.
For the #20 (comment) we would anyways create some kind of scenarios to switch between and decide when to update which likely would be some separate step. |
@yarikoptic That's not what that line does; if the matnwb folder already exists, it is deleted, and then (regardless of whether it existed or not) the latest release is downloaded & installed. |
doh - how could I misread |
Since it takes forever ATM to go through entire collection, I want to make it possible to "sparsely sample" by adding a run
--mode
, where defaultall
-- is current behavior. In case ofrandom-asset
:assets_ok
/assets_nok
version
, a record would not be just a string containing the path, but becomes a record withpath
andversions
fields, e.g.:versions:
(for those who have only path -- take "top level"versions
) -- just place those identical versions to the top levelversions:
record and renormalize all paths to just string records.While RF for this,
test_files
(which run tests on a given file(s)) command with--save-results
flag, so it would store the results as well (now they are just printed). It would allow for selective rerunningcheck
in some mode and e.g.test_files
-- RF code so storing of results from each file consists of reloading results file, modifying entry for that path, saving back. Caution would need to be taken to support removal of stale results - i.e. for paths which were removed already from dandisets, so might need recheck of all files being available as symlink or present?The text was updated successfully, but these errors were encountered: