Giter Club home page Giter Club logo

Comments (10)

mfurseman avatar mfurseman commented on August 11, 2024 1

Installed cmlib-1.1.3 and we're back in business!

image

Thanks for the prompt assistance. Argos is my favourite NetCDF viewer, everything you need and nothing you don't.

from argos.

titusjan avatar titusjan commented on August 11, 2024

Which Argos and library versions do you have? Can you please copy/paste the versions from the about box?

Can you somehow give me access to this file?

Looking at the error, it seem to me that this error is related to reading the color maps. What happens if you select a different color map by clicking on the color map selection dialog. See red circle in screen shot.

Screenshot 2022-07-26 at 15 10 41

from argos.

mfurseman avatar mfurseman commented on August 11, 2024

image

I'm unable to choose a different colourmap as the error is fatal (unless I can manually put this in the setting configuration somehow?). cmlib is also yours right!?

from argos.

mfurseman avatar mfurseman commented on August 11, 2024

With QT_API=pyside2 python3.9 -m argos filename.nc I'm able to keep the GUI open, although the Exception trace is still the same on all the color map fields.

from argos.

titusjan avatar titusjan commented on August 11, 2024

Yes cmlib is also mine.

So does this error occur only for that specific file? Or does it occur with any file?

from argos.

titusjan avatar titusjan commented on August 11, 2024

What happens if you run the cmlib_demo command? See here

from argos.

mfurseman avatar mfurseman commented on August 11, 2024

I get the same error, so that ties it down to something in cmlib. Are you happy to continue discussing here?

$ ~/.local/bin/cmlib_demo
Traceback (most recent call last):
  File "/home/foo/.local/bin/cmlib_demo", line 8, in <module>
    sys.exit(main())
  File "/home/foo/.local/lib/python3.9/site-packages/cmlib/demo.py", line 293, in main
    win = DemoWindow(cmLibModel=cmLibModel)
  File "/home/foo/.local/lib/python3.9/site-packages/cmlib/demo.py", line 226, in __init__
    self.updateSelectedLabel(self.selectionWidget.getCurrentColorMap())
  File "/home/foo/.local/lib/python3.9/site-packages/cmlib/demo.py", line 248, in updateSelectedLabel
    self.updateImageLabel(colorMap)
  File "/home/foo/.local/lib/python3.9/site-packages/cmlib/demo.py", line 255, in updateImageLabel
    pixMap = colorizeImageArray(self._imageArray, colorMap=colorMap,
  File "/home/foo/.local/lib/python3.9/site-packages/cmlib/demo.py", line 134, in colorizeImageArray
    rgba_arr = colorMap.rgba_uint8_array
  File "/home/foo/.local/lib/python3.9/site-packages/cmlib/cmap.py", line 357, in rgba_uint8_array
    self.load_rgba_uint8_array()
  File "/home/foo/.local/lib/python3.9/site-packages/cmlib/cmap.py", line 366, in load_rgba_uint8_array
    rgb_ints = self._read_rgb_uint8_file(file_name)
  File "/home/foo/.local/lib/python3.9/site-packages/cmlib/cmap.py", line 328, in _read_rgb_uint8_file
    rgb_floats = load_rgb_floats(file_name)
  File "/home/foo/.local/lib/python3.9/site-packages/cmlib/misc.py", line 87, in load_rgb_floats
    array = np.loadtxt(source_file, delimiter=delimiter, dtype=dtype, **kwargs)
  File "/home/foo/.local/lib/python3.9/site-packages/numpy/lib/npyio.py", line 1308, in loadtxt
    arr = _read(fname, dtype=dtype, comment=comment, delimiter=delimiter,
  File "/home/foo/.local/lib/python3.9/site-packages/numpy/lib/npyio.py", line 979, in _read
    arr = _load_from_filelike(
TypeError: Text reading control character must be a single unicode character or None; but got: ', '

from argos.

titusjan avatar titusjan commented on August 11, 2024

Yes we can continue discussing here. I can try to reproduce it later this evening.

Do you use Linux or MacOS?

from argos.

mfurseman avatar mfurseman commented on August 11, 2024

This is Linux under WSL, rendering done by Windows 11 Wayland backend.

uname -a
Linux Desktop 5.10.102.1-microsoft-standard-WSL2 #1 SMP Wed Mar 2 00:30:59 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=22.04
DISTRIB_CODENAME=jammy
DISTRIB_DESCRIPTION="Ubuntu 22.04 LTS"

from argos.

titusjan avatar titusjan commented on August 11, 2024

Accidentally pressed the close button a bit too early, but I have fixed the issue. I could reproduce it when I upgraded Numpy to version 1.23.1. It was an easy fix.

I have made a new release of cmlib: version 1.1.3. If you update to that version it should work. Please let me know if it doesn't.

from argos.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.