Skip to content

Error Reading QMCFC Files #86

Description

@ape33

Example input to reproduce the error:

example.zip

When opening example.en via:

pqenalyzer example.en

PQEnalyzer correctly identifies the QMCFC format and the GUI opens as expected. However, when opening a single parameter, the following error gets thrown:

Exception in Tkinter callback
Traceback (most recent call last):
  File "/home/ape/.conda/envs/test/lib/python3.12/tkinter/__init__.py", line 1968, in __call__
    return self.func(*args)
           ^^^^^^^^^^^^^^^^
  File "/home/ape/.conda/envs/test/lib/python3.12/site-packages/customtkinter/windows/widgets/ctk_button.py", line 554, in _clicked
    self._command()
  File "/home/ape/.conda/envs/test/lib/python3.12/site-packages/PQEnalyzer/apps/app_layout.py", line 183, in <lambda>
    command=lambda: plot_button_callback(0),
                    ^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ape/.conda/envs/test/lib/python3.12/site-packages/PQEnalyzer/apps/app.py", line 315, in __plot_button_event
    plot.simple(info_parameter)
  File "<@beartype(PQEnalyzer.plots.plot.Plot.simple) at 0x7f285d524040>", line 32, in simple
  File "/home/ape/.conda/envs/test/lib/python3.12/site-packages/PQEnalyzer/plots/plot.py", line 140, in simple
    self.plot_data()
  File "<@beartype(PQEnalyzer.plots.plot.Plot.plot_data) at 0x7f285d524360>", line 12, in plot_data
  File "/home/ape/.conda/envs/test/lib/python3.12/site-packages/PQEnalyzer/plots/plot.py", line 246, in plot_data
    self.main_data(self.info_parameter)
  File "<@beartype(PQEnalyzer.plots.plot_time.PlotTime.main_data) at 0x7f285d5276a0>", line 32, in main_data
  File "/home/ape/.conda/envs/test/lib/python3.12/site-packages/PQEnalyzer/plots/plot_time.py", line 69, in main_data
    energy_series = series(energy, info_parameter)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<@beartype(PQEnalyzer.energy_access.series) at 0x7f285f0a5bc0>", line 32, in series
  File "/home/ape/.conda/envs/test/lib/python3.12/site-packages/PQEnalyzer/energy_access.py", line 163, in series
    unit=parameter_unit(energy, info_parameter),
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<@beartype(PQEnalyzer.energy_access.parameter_unit) at 0x7f285f0a5760>", line 44, in parameter_unit
beartype.roar.BeartypeCallHintReturnViolation: Function PQEnalyzer.energy_access.parameter_unit() return "None" violates type hint <class 'str'>, as <class "builtins.NoneType"> "None" not instance of str.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions