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

Wizard error: "fermion_parameters" not defined in local scope #71

Closed
pietro-butti opened this issue Feb 6, 2025 · 3 comments
Closed

Comments

@pietro-butti
Copy link

I am trying to use the wizard to generate the input file. I want to measure the Wilson flow of some confs that I previously generated and stored in ./confs.

While using run_wizard() I get the following error

ERROR: UndefVarError: `fermion_parameters` not defined in local scope
Suggestion: check for an assignment to a local variable that shadows a global of the same name.
Stacktrace:
 [1] run_wizard()
   @ LatticeQCD.Wizard ~/.julia/packages/LatticeQCD/KMDCc/src/system/wizard.jl:451
 [2] top-level scope
   @ REPL[10]:1

the error appears after being asked how often I want to perform measures.

I leave in the following the complete output of the wizard in the REPL

julia> run_wizard()
--------------------------------------------------------------------------------
run_wizard
     格       格
     色       格
    色色色      格
 子子色色色色色子子子子子格子子子子
    色色色      格
     色       格
     格       格
     力       学      LatticeQCD.jl
    力力力     学学学
 子子力力力力力子子子学学学学学子子
    力力力     学学学
     力       学
     格       格
Welcome to a wizard for Lattice QCD.
We'll get you set up simulation parameters in no time.
--------------------------------------------------------------------------------
If you leave the prompt empty, a default value will be used.
To exit, press Ctrl + c.
Choose wizard mode
   simple
 > expert
put the name of the parameter file you make [my_parameters.toml]:
Input Lattice size, L=(Nx,Ny,Nz,Nt)
Nx ? [4]: 12
Ny ? [4]: 12
Nz ? [4]: 12
Nt ? [4]: 12
Lattice is [12, 12, 12, 12]
Choose a gauge group
   SU(3)
 > SU(2)
SU(2) will be used
β ? [2.7]:
Input random seed. [111]:
verbose level ? [2]:
verbose level = 2
Do you perform only measurements on configurations in a directory? (no update)
   No
 > Yes
Choose a configuration format for loading
   JLD
   ILDG
 > Text format(BridgeText)
Loading directory [./confs]:
Which configurations do you use?
 > All configurations in the directory
   Configurations written in a list
Select the measurement methods you want to do:
[press: Enter=toggle, a=all, n=none, d=done, q=abort]
   [X] Plaquette
   [ ] Polyakov_loop
 > [X] Topological_charge
   [ ] Chiral_condensate
   [ ] Pion_correlator
   [ ] Wilson_loop
   [X] Energy_density
You measure Energy density
How often measure Plaquette loops? [1]:
You measure a topological charge
How often measure a topological charge? [1]:
You measure Plaquette loops
How often measure Plaquette loops? [1]:
ERROR: UndefVarError: `fermion_parameters` not defined in local scope
Suggestion: check for an assignment to a local variable that shadows a global of the same name.
Stacktrace:
 [1] run_wizard()
   @ LatticeQCD.Wizard ~/.julia/packages/LatticeQCD/KMDCc/src/system/wizard.jl:451
 [2] top-level scope
   @ REPL[10]:1
@pietro-butti
Copy link
Author

(Sorry, I generated by mistake another issue with the same content, which I closed)

@cometscome
Copy link
Collaborator

Thank you for writing a bug report. I will check it and revise it.

@cometscome
Copy link
Collaborator

@pietro-butti We updated LatticeQCD.jl to v1.3.3. Please use this new version. I confirm that your case is resolved.

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

2 participants