Skip to content

Issue with gris location plot with disable-hmi-cache

Running gris_location_plot with --disable-hmi-cache gives me the following error:

gris_location_plot -v -o test --disable-hmi-cache -r 22 /dat/sdc/gris/20140922
/home/vigeesh/conda/envs/kistools_env/bin/gris_location_plot:4: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
  __import__('pkg_resources').run_script('kis-tools==3.12.2', 'gris_location_plot')

 __  ___  __       _______.   .___________.  ______     ______    __          _______.
|  |/  / |  |     /       |   |           | /  __  \   /  __  \  |  |        /       |
|  '  /  |  |    |   (----`   `---|  |----`|  |  |  | |  |  |  | |  |       |   (----`
|    <   |  |     \   \           |  |     |  |  |  | |  |  |  | |  |        \   \    
|  .  \  |  | .----)   |          |  |     |  `--'  | |  `--'  | |  `----.----)   |   
|__|\__\ |__| |_______/           |__|      \______/   \______/  |_______|_______/    

1/0 files failed to download. Please check `.errors` for details                                                                                                                           
Files Downloaded:   0%|                                                                                                                                            | 0/1 [01:27<?, ?file/s]
22sep14.022:   0%|                                                                                                                                                   | 0/1 [01:37<?, ?it/s]
Traceback (most recent call last):
  File "/home/vigeesh/conda/envs/kistools_env/bin/gris_location_plot", line 4, in <module>
    __import__('pkg_resources').run_script('kis-tools==3.12.2', 'gris_location_plot')
  File "/home/vigeesh/conda/envs/kistools_env/lib/python3.11/site-packages/pkg_resources/__init__.py", line 722, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/home/vigeesh/conda/envs/kistools_env/lib/python3.11/site-packages/pkg_resources/__init__.py", line 1561, in run_script
    exec(code, namespace, namespace)
  File "/home/vigeesh/conda/envs/kistools_env/lib/python3.11/site-packages/kis_tools-3.12.2-py3.11.egg/EGG-INFO/scripts/gris_location_plot", line 27, in <module>
    make_gris_locplots(folder, run=run, output_folder=output_folder, use_hmi_cache=use_hmi_cache,debug=debug)
  File "/home/vigeesh/conda/envs/kistools_env/lib/python3.11/site-packages/kis_tools-3.12.2-py3.11.egg/kis_tools/gris/plotting.py", line 232, in make_gris_locplots
    fig, ax = r.plot_location(use_hmi_cache=use_hmi_cache,debug=debug)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/vigeesh/conda/envs/kistools_env/lib/python3.11/site-packages/kis_tools-3.12.2-py3.11.egg/kis_tools/generic/observation.py", line 161, in plot_location
    fig, ax = make_loc_plot(
              ^^^^^^^^^^^^^^
  File "/home/vigeesh/conda/envs/kistools_env/lib/python3.11/site-packages/kis_tools-3.12.2-py3.11.egg/kis_tools/util/locplot.py", line 138, in make_loc_plot
    hmi_map = get_continuum_map(date, use_hmi_cache)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/vigeesh/conda/envs/kistools_env/lib/python3.11/site-packages/kis_tools-3.12.2-py3.11.egg/kis_tools/util/locplot.py", line 262, in get_continuum_map
    continuum_file = download_hmi_continuum(date, context_dir)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/vigeesh/conda/envs/kistools_env/lib/python3.11/site-packages/kis_tools-3.12.2-py3.11.egg/kis_tools/util/locplot.py", line 60, in download_hmi_continuum
    continuum_file = pull_continuum(date, target)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/vigeesh/conda/envs/kistools_env/lib/python3.11/site-packages/kis_tools-3.12.2-py3.11.egg/kis_tools/util/locplot.py", line 88, in pull_continuum
    file = Fido.fetch(row)[0]
           ~~~~~~~~~~~~~~~^^^
  File "/home/vigeesh/conda/envs/kistools_env/lib/python3.11/collections/__init__.py", line 1241, in __getitem__
    return self.data[i]
           ~~~~~~~~~^^^
IndexError: list index out of range