Change default data location to current working directory

Ouverte
#270 6 commentaires 5 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

Évaluation

Difficulté
4/5
Temps estimé
3-5 jours
Accessibilité débutants
25/100
Type d'issue
Fonctionnalité
Clarté
Plutôt claire
Activité
À l'abandon
Stack technique
python
Domaine
backend

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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?

Langage dominant
Python
Étoiles
1.7k
Forks
438
Merge moyen
53 min
PR mergées (30 j)
2

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de quantumlib/OpenFermion

Toutes les issues de quantumlib/OpenFermion

Issues similaires

Plus d'issues Python

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.