Skip to content

[Code Bug]: bugs in spot analysis examples #297

@bbean23

Description

@bbean23

Contact Details

[email protected]

What happened?

incorrect imports, code doesn't run

Version

develop@c481fdc

What OS are you seeing this on?

MacOS

Relevant dependency versions

s1066773:OpenCSP bbean$ env/bin/python3 --version; ffmpeg -version; env/bin/python3 -m pip list
Python 3.11.9
ffmpeg version N-117676-g87068b9600-tessus  https://evermeet.cx/ffmpeg/  Copyright (c) 2000-2024 the FFmpeg developers
built with Apple clang version 16.0.0 (clang-1600.0.26.4)
configuration: --cc=/usr/bin/clang --prefix=/opt/ffmpeg --extra-version=tessus --enable-avisynth --enable-fontconfig --enable-gpl --enable-libaom --enable-libass --enable-libbluray --enable-libdav1d --enable-libfreetype --enable-libgsm --enable-libharfbuzz --enable-libmodplug --enable-libmp3lame --enable-libmysofa --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvmaf --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-version3 --pkg-config-flags=--static --disable-ffplay
libavutil      59. 46.100 / 59. 46.100
libavcodec     61. 22.100 / 61. 22.100
libavformat    61.  9.100 / 61.  9.100
libavdevice    61.  4.100 / 61.  4.100
libavfilter    10.  6.100 / 10.  6.100
libswscale      8.  9.101 /  8.  9.101
libswresample   5.  4.100 /  5.  4.100
libpostproc    58.  4.100 / 58.  4.100
Package                       Version
----------------------------- --------------
alabaster                     1.0.0
anyio                         4.8.0
appnope                       0.1.4
argon2-cffi                   25.1.0
argon2-cffi-bindings          25.1.0
arrow                         1.3.0
astroid                       3.3.8
asttokens                     2.4.1
async-lru                     2.0.5
attrs                         25.3.0
av                            14.1.0
babel                         2.17.0
beautifulsoup4                4.12.3
black                         24.10.0
bleach                        6.2.0
cachetools                    5.5.1
cattrs                        25.1.1
certifi                       2024.7.4
cffi                          2.0.0
chardet                       5.2.0
charset-normalizer            3.4.1
click                         8.1.8
colorama                      0.4.6
comm                          0.2.2
contourpy                     1.2.1
coverage                      7.6.1
cycler                        0.12.1
debugpy                       1.8.5
decorator                     5.1.1
defusedxml                    0.7.1
dill                          0.3.9
distlib                       0.3.9
docutils                      0.21.2
dpkt                          1.9.8
entrypoints                   0.4
esbonio                       0.16.5
et-xmlfile                    1.1.0
executing                     2.0.1
fastjsonschema                2.21.1
filelock                      3.17.0
fonttools                     4.53.1
fqdn                          1.5.1
h11                           0.14.0
h2                            4.1.0
h5py                          3.12.1
hpack                         4.1.0
httpcore                      1.0.7
httpx                         0.28.1
hyperframe                    6.1.0
idna                          3.10
imageio                       2.37.0
imagesize                     1.4.1
iniconfig                     2.0.0
ipykernel                     6.29.5
ipython                       8.26.0
isoduration                   20.11.0
isort                         6.0.0
jedi                          0.19.1
Jinja2                        3.1.6
json5                         0.12.1
jsonpointer                   3.0.0
jsonschema                    4.24.0
jsonschema-specifications     2025.4.1
jupyter_client                7.4.9
jupyter_core                  5.7.2
jupyter-events                0.12.0
jupyter-lsp                   2.3.0
jupyter_server                2.17.0
jupyter_server_terminals      0.5.3
jupyterlab                    4.4.7
jupyterlab_pygments           0.3.0
jupyterlab_server             2.27.3
kiwisolver                    1.4.5
lazy_loader                   0.4
lsprotocol                    2023.0.1
lxml                          5.3.0
markdown-it-py                3.0.0
MarkupSafe                    3.0.2
matplotlib                    3.8.4
matplotlib-inline             0.1.7
mccabe                        0.7.0
mdurl                         0.1.2
mistune                       3.1.3
mock                          5.1.0
mpmath                        1.3.0
mypy-extensions               1.0.0
nats-py                       2.11.0
nbclient                      0.10.2
nbconvert                     7.16.6
nbformat                      5.10.4
nbmake                        1.5.5
nbsphinx                      0.9.7
nest-asyncio                  1.6.0
networkx                      3.4.2
notebook                      7.4.5
notebook_shim                 0.2.4
numpy                         1.26.4
opencv-contrib-python         4.10.0.82
openpyxl                      3.1.5
overrides                     7.7.0
packaging                     24.2
pandas                        2.2.3
pandocfilters                 1.5.1
parso                         0.8.4
pathspec                      0.12.1
pexpect                       4.9.0
pillow                        11.1.0
pip                           25.2
pipdeptree                    2.26.1
platformdirs                  4.3.6
pluggy                        1.5.0
prometheus_client             0.23.1
prompt_toolkit                3.0.47
psutil                        6.0.0
ptyprocess                    0.7.0
pure_eval                     0.2.3
pycparser                     2.23
PyExifTool                    0.5.6
pygls                         1.3.1
Pygments                      2.18.0
pylint                        3.3.4
pyparsing                     3.1.2
pyproj                        3.7.0
pyproject-api                 1.9.0
pypylon                       4.1.0
pysolar                       0.13
pyspellchecker                0.8.3
pytest                        8.3.4
pytest-asyncio                0.25.3
pytest-cov                    6.0.0
python-coveralls              2.9.3
python-dateutil               2.9.0.post0
python-json-logger            3.3.0
python-pptx                   1.0.2
pytz                          2024.2
PyVirtualDisplay              3.0
PyYAML                        6.0.2
pyzmq                         24.0.1
rawpy                         0.24.0
referencing                   0.36.2
requests                      2.32.3
rfc3339-validator             0.1.4
rfc3986-validator             0.1.1
rich                          13.9.4
roman-numerals-py             3.1.0
rpds-py                       0.26.0
scikit-image                  0.25.2
scipy                         1.14.1
Send2Trash                    1.8.3
setuptools                    65.5.0
six                           1.16.0
sniffio                       1.3.1
snowballstemmer               3.0.1
soupsieve                     2.6
Sphinx                        8.1.3
sphinx-argparse               0.5.2
sphinx-rtd-theme              3.0.2
sphinxarg                     0.2.5
sphinxcontrib-applehelp       2.0.0
sphinxcontrib-devhelp         2.0.0
sphinxcontrib-htmlhelp        2.1.0
sphinxcontrib-jquery          4.1
sphinxcontrib-jsmath          1.0.1
sphinxcontrib-qthelp          2.0.0
sphinxcontrib-serializinghtml 2.0.0
stack-data                    0.6.3
sympy                         1.13.3
terminado                     0.18.1
tifffile                      2025.5.10
tinycss2                      1.4.0
tokenize_rt                   6.2.0
tomlkit                       0.13.2
tornado                       6.4.1
tox                           4.24.1
tqdm                          4.67.1
traitlets                     5.14.3
types-python-dateutil         2.9.0.20250822
typing_extensions             4.12.2
tzdata                        2024.1
uri-template                  1.3.0
urllib3                       2.3.0
virtualenv                    20.29.2
wcwidth                       0.2.13
webcolors                     24.11.1
webencodings                  0.5.1
websocket-client              1.8.0
websockets                    14.2
XlsxWriter                    3.2.0

python script that produces the error

It's the target_identification.ipynb and enclosed_energy.ipynb notebooks.

Relevant console output

Contribution Guidelines

  • I agree to follow this project's contribution guidelines

Metadata

Metadata

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions