Change default data location to current working directory

Aperta
#270 6 commenti 5 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
python
Ambito
backend

Direzione di ricerca

Start by locating the config setting for the installation data directory and the default path handling used by plugins and MolecularData. Check how filenames beginning with ./ are resolved, then trace the related tests. Done means defaults use the caller’s current working directory and ./data/... resolves beneath it; the issue names no specific files or tests.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

e: experienced no QC knowledge needed

Right now using most of the plugins or MolecularData class will default to the installation directory specified in the config file, which could be in a very inconvenient location for some people. Also, in my own workflows I'm most interested in keeping data local to a particular project rather than OpenFermion itself, hence it would be better if the universal defaults were the working directory of the user of the code, rather than the installation directory. It should also be the case that when filenames are passed of the form "./data/myfilename.hdf5", that this is the 'data' directory within the current working directory, not in the installation data directory. Any thoughts to the contrary?

Lingua principale
Python
Stelle
1.7k
Fork
438
Merge medio
53m
PR unite (30g)
2

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di quantumlib/OpenFermion

Tutte le issue di quantumlib/OpenFermion

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.