ginkgo-project / ssget

Command line tool for working with matrices from the SuiteSparse Matrix Collection (sparse.tamu.edu)
Other
8 stars 4 forks source link

Add a command line flag to specify the archive location #5

Open codecircuit opened 4 years ago

codecircuit commented 4 years ago

This would be useful if you do not want to store the matrices in your home directory.

tcojean commented 4 years ago

Thanks for your input on this!

I agree something needs to be done here. My question is how to do it properly. Let's try to collect some options:

codecircuit commented 4 years ago

As far as I understood it you must first query the matrix IDs like this:

ids=$(ssget -s "[ @name == matrixname ] || [ @name == othermatrixname]")

before you can download them with

for id in $ids; do
  ssget -i $id -e
done

It would be cool if you can just add -e to the first command and all matrices matching the predicate are downloaded. But instead of overloading this issue, maybe we open one issue for each feature?

tcojean commented 4 years ago

Indeed as that is another feature I think another issue on the subject would be better.