diff --git a/.dvc/config b/.dvc/config index 6c7e51f..7f7c47e 100644 --- a/.dvc/config +++ b/.dvc/config @@ -1,4 +1,5 @@ [core] remote = local + autostage = true ['remote "local"'] url = /home/parmentf/data/dvc diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3aa98c9 --- /dev/null +++ b/.gitignore @@ -0,0 +1,86 @@ +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* + +# Runtime data +pids +*.pid +*.seed +*.pid.lock + +# Directory for instrumented libs generated by jscoverage/JSCover +lib-cov + +# Coverage directory used by tools like istanbul +coverage + +# nyc test coverage +.nyc_output + +# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) +.grunt + +# Bower dependency directory (https://bower.io/) +bower_components + +# node-waf configuration +.lock-wscript + +# Compiled binary addons (https://nodejs.org/api/addons.html) +build/Release + +# Dependency directories +node_modules/ +jspm_packages/ + +# TypeScript v1 declaration files +typings/ + +# Optional npm cache directory +.npm + +# Optional eslint cache +.eslintcache + +# Optional REPL history +.node_repl_history + +# Output of 'npm pack' +*.tgz + +# Yarn Integrity file +.yarn-integrity + +# dotenv environment variables file +.env + +# next.js build output +.next + +# Compiled files +lib/ + +# Secret files +token.txt + +# Useless format files +data/*.xlsx + +# Big files +data/*.gz +data/*.zip + +# Result files +res*.tsv + +# temporary models +model/rnsr-??.bin +model/rnsr-??.vec +model/rnsr-?.bin +model/rnsr-?.vec + +# LibreOffice temporary files +.~lock.* diff --git a/README.md b/README.md index 9714388..9544651 100644 --- a/README.md +++ b/README.md @@ -6,11 +6,13 @@ ## DVC +### Initialisation + La documentation de l'extension DVC de VSCode dit que pour initialiser le dépôt il faut taper `dvc exp init -i`, mais ça ne marche pas avec ma version de DVC (qui est apparemment plus récente que ce à quoi s'attend l'extension). -```zsh +```bash $ dvc init Initialized DVC repository. @@ -43,4 +45,26 @@ - `.vscode` - `settings.json` -Pour créer un remote, je tape `dvc remote add -d local /home/parmentf/data/dvc`. +Pour créer un remote, je tape `dvc remote add -d local /home/parmentf/data/dvc`. +Il faut juste que le répertoire existe (et soit vide ou déjà consacré à ça). + +### Ajout de fichier + +```bash +$ dvc add data/netscity-ville-aire-uniq.tsv +100% Adding...|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████|1/1 [00:00, 20.28file/s] + +To track the changes with git, run: + + git add data/netscity-ville-aire-uniq.tsv.dvc data/.gitignore + +To enable auto staging, run: + + dvc config core.autostage true +``` + +Donc, si on veut se simplifier la vie sur les ajouts suivants: + +```bash +dvc config core.autostage true +``` diff --git a/data/.gitignore b/data/.gitignore new file mode 100644 index 0000000..1c5b9ce --- /dev/null +++ b/data/.gitignore @@ -0,0 +1 @@ +/netscity-ville-aire-uniq.tsv diff --git a/data/netscity-ville-aire-uniq.tsv.dvc b/data/netscity-ville-aire-uniq.tsv.dvc new file mode 100644 index 0000000..9d72da0 --- /dev/null +++ b/data/netscity-ville-aire-uniq.tsv.dvc @@ -0,0 +1,4 @@ +outs: +- md5: 85e405b8cc452b953e8dfd12dae5d8d6 + size: 341275 + path: netscity-ville-aire-uniq.tsv