Skip to content
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

presets as external JSON files #3

Open
falkben opened this issue Aug 24, 2019 · 1 comment
Open

presets as external JSON files #3

falkben opened this issue Aug 24, 2019 · 1 comment
Assignees

Comments

@falkben
Copy link
Contributor

falkben commented Aug 24, 2019

would be handy to have presets exist outside the code, for a number of reasons.

  1. user could define their own preset, save it to disk, and have ardent "recognize" it as an option
  2. presets "in" the code are somewhat obscured to the user (e.g., how to make a preset if you have to edit the code?)
  3. presets which exist outside the code are somewhat more explicit to the user as to what the options are if they do decide to create their own.

As a first step you could just move them out of the code and make them JSON files which can be loaded in from a given directory, however that doesn't solve all issues above (as in, hard to find by the user). Documentation is probably needed for that.

preset_parameters.update({'identity' : dict(eT=0, eL=0, eV=0, sigmaR=0, naffine=0, niter=1)})
preset_parameters.update({'clarity, mouse' : dict(eT=1e-7, eL=1e-10, eV=2e0, sigmaR=2e1)})
preset_parameters.update({'nissl, mouse' : dict(eT=2e-9, eL=1e-13, eV=5e-4, sigmaR=1e0)})
preset_parameters.update({'mri, human' : dict(eT=1e-9, eL=5e-13, eV=5e-4, sigmaR=1e0)})
# preset_parameters.update({'clarity' : dict(sigmaR=1e1, eV=5e-1, eL=2e-8, eT=2e-5)}) # TODO: remove deprecated 'clarity' preset.

@jovo
Copy link
Member

jovo commented Aug 24, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants