Code Monkey home page Code Monkey logo

pyncview's Introduction

PyNcView

PyNcView is a cross-platform NetCDF viewer written in Python. It provides an easy-to-use graphical user interface to the creation of animations and publication-quality figures. It can open multiple NetCDF files side-by-side and can plot expressions containing NetCDF variables and mathematical operators.

Installation (Windows, Mac, Linux)

If you use Anaconda or Miniconda, the easiest way to install PyNcView is:

conda install -c conda-forge pyncview

Alternatively, PyNcView can be installed with pip:

pip install pyncview

In that case, you will also need to make sure to have PyQt or PySide installed. To install the former, use pip install pyqt5.

Use

To use PyNcView, start it from the command line with

pyncview

If you add the path to the NetCDF file you want to open, PyNcView will show that right away, for instance:

pyncview result.nc

pyncview's People

Contributors

jornbr avatar bolding avatar

Stargazers

하지훈 avatar  avatar Sierd de Vries avatar LangyaMaple avatar Jonathan Lauderdale avatar Marcello Vichi avatar Thomas Petzoldt avatar Paul Julian avatar  avatar water@nankai avatar Markus Reinert avatar  avatar Xinyu Wen avatar Radovan Bast avatar Qing Li avatar Stuart Matthews avatar Raoul-M Couture avatar

Watchers

James Cloos avatar  avatar  avatar fenjuan avatar  avatar

Forkers

markusreinert

pyncview's Issues

QtWidgets

I am not able to get the latest pyncview-git (https://github.com/BoldingBruggeman/pyncview) work together with the latest GOTM/code/gui (https://github.com/gotm-model/code)

For example:
python multiplot.py -s INFILE –e VARIABLE
gives: “cannot import name QtWidgets”
The error message is from multiplot.py
“ def plot(self,startmessageloop=True):
gui = self.output is None

    if gui:
        # We have to show figure in GUI.

        # Import PyQt libraries if not doen already.
        global QtWidgets
        if QtWidgets is None:
            from xmlstore.qt_compat import QtWidgets

To me, it seems like that module QtWidgets does not exist in:
GOTM/gotm-code/gui.py/xmlstore/qt_compat.py

Required paths are defined as export
GOTMDIR=HOME/GOTM/gotm-code
export PYTHONPATH=HOME/GOTM/gotm-code/gui.py

In multiplot.py, I have tried to shift from PyQt4 to PyQt5 and use
from PyQt5 import QtWidgets
instead, but since the xmlplot-dir use PyQt4, it is not a possible way forward


I have also tried to import the module in an ipython-environment:
ipython: from xmlstore.qt_compat import QtWidgets
In [1]: from xmlstore.qt_compat import QtWidgets
ImportError Traceback (most recent call last)
in ()
----> 1 from xmlstore.qt_compat import QtWidgets

ImportError: cannot import name QtWidgets

In [2]: import xmlstore.qt_compat


Thus, it is possible to import qt_compat but not the QtQidgets

It seems like older version of the pyncview-packages does not use QtWidgets.
In my older version of multiplot.py (def plot) use PyQt4-package instead:
“ global QtGui
from PyQt4 import QtGui”


Do you have any solution to get the pyncview package up and running?

/Johan Söderkvist
Defence Centre for Operational Oceanography (FCOO)
Denmark

Error with NoneType opening Options menu

Clicking on Edit > Options... gives :

  File "/[venv path]/lib/python3.12/site-packages/pyncview/pyncview.py", line 1030, in onEditOptions
    cb.setChecked(self.settings['MaskValuesOutsideRange'].getValue(usedefault=True))
TypeError: setChecked(self, a0: bool): argument 1 has unexpected type 'NoneType'

FigureCanvasQTAgg' object has no attribute '_update_dpi'

Traceback (most recent call last):
File "/home/kklingbe/.local/lib/python2.7/site-packages/xmlplot-0.9.17-py2.7.egg/xmlplot/mpl_backend_qt4.py", line 43, in paintEvent
if self._update_dpi():
AttributeError: 'FigureCanvasQTAgg' object has no attribute '_update_dpi'

Figure properties triggers error

When trying to change the figure properties a pop up windows opens with the error below. Even if I close the error windows it will re-open until I close the property window.

Traceback (most recent call last):
File "/storage/sire/users/grg/miniconda3/envs/fabmos/lib/python3.11/site-packages/xmlstore/gui_qt4.py", line 910, in paint
editorclass.displayValue(self,painter,option,index)
File "/storage/sire/users/grg/miniconda3/envs/fabmos/lib/python3.11/site-packages/xmlstore/gui_qt4.py", line 839, in displayValue
qPixMap = cls.getPixMap(value,cls.width,cls.height,dpi)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/storage/sire/users/grg/miniconda3/envs/fabmos/lib/python3.11/site-packages/xmlstore/gui_qt4.py", line 825, in getPixMap
qPixMap = cls.createPixMap(value,width,height,dpi)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/storage/sire/users/grg/miniconda3/envs/fabmos/lib/python3.11/site-packages/xmlplot/gui_qt4.py", line 131, in createPixMap
qImage = QtGui.QImage(stringBuffer, width, height, QtGui.QImage.Format_ARGB32)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: arguments did not match any overloaded call:
QImage(): too many arguments
QImage(size: QSize, format: QImage.Format): argument 1 has unexpected type 'memoryview'
QImage(width: int, height: int, format: QImage.Format): argument 1 has unexpected type 'memoryview'
QImage(data: typing.Optional[bytes], width: int, height: int, format: QImage.Format): argument 2 has unexpected type 'float'
QImage(data: typing.Optional[PyQt5.sip.voidptr], width: int, height: int, format: QImage.Format): argument 2 has unexpected type 'float'
QImage(data: typing.Optional[bytes], width: int, height: int, bytesPerLine: int, format: QImage.Format): argument 2 has unexpected type 'float'
QImage(data: typing.Optional[PyQt5.sip.voidptr], width: int, height: int, bytesPerLine: int, format: QImage.Format): argument 2 has unexpected type 'float'
QImage(xpm: List[str]): argument 1 has unexpected type 'memoryview'
QImage(fileName: str, format: typing.Optional[str] = None): argument 1 has unexpected type 'memoryview'
QImage(a0: QImage): argument 1 has unexpected type 'memoryview'
QImage(variant: Any): too many arguments
Traceback (most recent call last):
File "/storage/sire/users/grg/miniconda3/envs/fabmos/lib/python3.11/site-packages/xmlstore/gui_qt4.py", line 910, in paint
editorclass.displayValue(self,painter,option,index)
File "/storage/sire/users/grg/miniconda3/envs/fabmos/lib/python3.11/site-packages/xmlstore/gui_qt4.py", line 839, in displayValue
qPixMap = cls.getPixMap(value,cls.width,cls.height,dpi)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/storage/sire/users/grg/miniconda3/envs/fabmos/lib/python3.11/site-packages/xmlstore/gui_qt4.py", line 825, in getPixMap
qPixMap = cls.createPixMap(value,width,height,dpi)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/storage/sire/users/grg/miniconda3/envs/fabmos/lib/python3.11/site-packages/xmlplot/gui_qt4.py", line 131, in createPixMap
qImage = QtGui.QImage(stringBuffer, width, height, QtGui.QImage.Format_ARGB32)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: arguments did not match any overloaded call:
QImage(): too many arguments
QImage(size: QSize, format: QImage.Format): argument 1 has unexpected type 'memoryview'
QImage(width: int, height: int, format: QImage.Format): argument 1 has unexpected type 'memoryview'
QImage(data: typing.Optional[bytes], width: int, height: int, format: QImage.Format): argument 2 has unexpected type 'float'
QImage(data: typing.Optional[PyQt5.sip.voidptr], width: int, height: int, format: QImage.Format): argument 2 has unexpected type 'float'
QImage(data: typing.Optional[bytes], width: int, height: int, bytesPerLine: int, format: QImage.Format): argument 2 has unexpected type 'float'
QImage(data: typing.Optional[PyQt5.sip.voidptr], width: int, height: int, bytesPerLine: int, format: QImage.Format): argument 2 has unexpected type 'float'
QImage(xpm: List[str]): argument 1 has unexpected type 'memoryview'
QImage(fileName: str, format: typing.Optional[str] = None): argument 1 has unexpected type 'memoryview'
QImage(a0: QImage): argument 1 has unexpected type 'memoryview'
QImage(variant: Any): too many arguments
Traceback (most recent call last):
File "/storage/sire/users/grg/miniconda3/envs/fabmos/lib/python3.11/site-packages/xmlstore/gui_qt4.py", line 910, in paint
editorclass.displayValue(self,painter,option,index)
File "/storage/sire/users/grg/miniconda3/envs/fabmos/lib/python3.11/site-packages/xmlstore/gui_qt4.py", line 839, in displayValue
qPixMap = cls.getPixMap(value,cls.width,cls.height,dpi)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/storage/sire/users/grg/miniconda3/envs/fabmos/lib/python3.11/site-packages/xmlstore/gui_qt4.py", line 825, in getPixMap
qPixMap = cls.createPixMap(value,width,height,dpi)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/storage/sire/users/grg/miniconda3/envs/fabmos/lib/python3.11/site-packages/xmlplot/gui_qt4.py", line 131, in createPixMap
qImage = QtGui.QImage(stringBuffer, width, height, QtGui.QImage.Format_ARGB32)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: arguments did not match any overloaded call:
QImage(): too many arguments
QImage(size: QSize, format: QImage.Format): argument 1 has unexpected type 'memoryview'
QImage(width: int, height: int, format: QImage.Format): argument 1 has unexpected type 'memoryview'
QImage(data: typing.Optional[bytes], width: int, height: int, format: QImage.Format): argument 2 has unexpected type 'float'
QImage(data: typing.Optional[PyQt5.sip.voidptr], width: int, height: int, format: QImage.Format): argument 2 has unexpected type 'float'
QImage(data: typing.Optional[bytes], width: int, height: int, bytesPerLine: int, format: QImage.Format): argument 2 has unexpected type 'float'
QImage(data: typing.Optional[PyQt5.sip.voidptr], width: int, height: int, bytesPerLine: int, format: QImage.Format): argument 2 has unexpected type 'float'
QImage(xpm: List[str]): argument 1 has unexpected type 'memoryview'
QImage(fileName: str, format: typing.Optional[str] = None): argument 1 has unexpected type 'memoryview'
QImage(a0: QImage): argument 1 has unexpected type 'memoryview'
QImage(variant: Any): too many arguments
Traceback (most recent call last):
File "/storage/sire/users/grg/miniconda3/envs/fabmos/lib/python3.11/site-packages/xmlstore/gui_qt4.py", line 910, in paint
editorclass.displayValue(self,painter,option,index)
File "/storage/sire/users/grg/miniconda3/envs/fabmos/lib/python3.11/site-packages/xmlstore/gui_qt4.py", line 839, in displayValue
qPixMap = cls.getPixMap(value,cls.width,cls.height,dpi)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/storage/sire/users/grg/miniconda3/envs/fabmos/lib/python3.11/site-packages/xmlstore/gui_qt4.py", line 825, in getPixMap
qPixMap = cls.createPixMap(value,width,height,dpi)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/storage/sire/users/grg/miniconda3/envs/fabmos/lib/python3.11/site-packages/xmlplot/gui_qt4.py", line 131, in createPixMap
qImage = QtGui.QImage(stringBuffer, width, height, QtGui.QImage.Format_ARGB32)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: arguments did not match any overloaded call:
QImage(): too many arguments
QImage(size: QSize, format: QImage.Format): argument 1 has unexpected type 'memoryview'
QImage(width: int, height: int, format: QImage.Format): argument 1 has unexpected type 'memoryview'
QImage(data: typing.Optional[bytes], width: int, height: int, format: QImage.Format): argument 2 has unexpected type 'float'
QImage(data: typing.Optional[PyQt5.sip.voidptr], width: int, height: int, format: QImage.Format): argument 2 has unexpected type 'float'
QImage(data: typing.Optional[bytes], width: int, height: int, bytesPerLine: int, format: QImage.Format): argument 2 has unexpected type 'float'
QImage(data: typing.Optional[PyQt5.sip.voidptr], width: int, height: int, bytesPerLine: int, format: QImage.Format): argument 2 has unexpected type 'float'
QImage(xpm: List[str]): argument 1 has unexpected type 'memoryview'
QImage(fileName: str, format: typing.Optional[str] = None): argument 1 has unexpected type 'memoryview'
QImage(a0: QImage): argument 1 has unexpected type 'memoryview'
QImage(variant: Any): too many arguments
Traceback (most recent call last):
File "/storage/sire/users/grg/miniconda3/envs/fabmos/lib/python3.11/site-packages/xmlstore/gui_qt4.py", line 910, in paint
editorclass.displayValue(self,painter,option,index)
File "/storage/sire/users/grg/miniconda3/envs/fabmos/lib/python3.11/site-packages/xmlstore/gui_qt4.py", line 839, in displayValue
qPixMap = cls.getPixMap(value,cls.width,cls.height,dpi)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/storage/sire/users/grg/miniconda3/envs/fabmos/lib/python3.11/site-packages/xmlstore/gui_qt4.py", line 825, in getPixMap
qPixMap = cls.createPixMap(value,width,height,dpi)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/storage/sire/users/grg/miniconda3/envs/fabmos/lib/python3.11/site-packages/xmlplot/gui_qt4.py", line 131, in createPixMap
qImage = QtGui.QImage(stringBuffer, width, height, QtGui.QImage.Format_ARGB32)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: arguments did not match any overloaded call:
QImage(): too many arguments
QImage(size: QSize, format: QImage.Format): argument 1 has unexpected type 'memoryview'
QImage(width: int, height: int, format: QImage.Format): argument 1 has unexpected type 'memoryview'
QImage(data: typing.Optional[bytes], width: int, height: int, format: QImage.Format): argument 2 has unexpected type 'float'
QImage(data: typing.Optional[PyQt5.sip.voidptr], width: int, height: int, format: QImage.Format): argument 2 has unexpected type 'float'
QImage(data: typing.Optional[bytes], width: int, height: int, bytesPerLine: int, format: QImage.Format): argument 2 has unexpected type 'float'
QImage(data: typing.Optional[PyQt5.sip.voidptr], width: int, height: int, bytesPerLine: int, format: QImage.Format): argument 2 has unexpected type 'float'
QImage(xpm: List[str]): argument 1 has unexpected type 'memoryview'
QImage(fileName: str, format: typing.Optional[str] = None): argument 1 has unexpected type 'memoryview'
QImage(a0: QImage): argument 1 has unexpected type 'memoryview'
QImage(variant: Any): too many arguments
Traceback (most recent call last):
File "/storage/sire/users/grg/miniconda3/envs/fabmos/lib/python3.11/site-packages/xmlstore/gui_qt4.py", line 910, in paint
editorclass.displayValue(self,painter,option,index)
File "/storage/sire/users/grg/miniconda3/envs/fabmos/lib/python3.11/site-packages/xmlstore/gui_qt4.py", line 839, in displayValue
qPixMap = cls.getPixMap(value,cls.width,cls.height,dpi)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/storage/sire/users/grg/miniconda3/envs/fabmos/lib/python3.11/site-packages/xmlstore/gui_qt4.py", line 825, in getPixMap
qPixMap = cls.createPixMap(value,width,height,dpi)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/storage/sire/users/grg/miniconda3/envs/fabmos/lib/python3.11/site-packages/xmlplot/gui_qt4.py", line 131, in createPixMap
qImage = QtGui.QImage(stringBuffer, width, height, QtGui.QImage.Format_ARGB32)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: arguments did not match any overloaded call:
QImage(): too many arguments
QImage(size: QSize, format: QImage.Format): argument 1 has unexpected type 'memoryview'
QImage(width: int, height: int, format: QImage.Format): argument 1 has unexpected type 'memoryview'
QImage(data: typing.Optional[bytes], width: int, height: int, format: QImage.Format): argument 2 has unexpected type 'float'
QImage(data: typing.Optional[PyQt5.sip.voidptr], width: int, height: int, format: QImage.Format): argument 2 has unexpected type 'float'
QImage(data: typing.Optional[bytes], width: int, height: int, bytesPerLine: int, format: QImage.Format): argument 2 has unexpected type 'float'
QImage(data: typing.Optional[PyQt5.sip.voidptr], width: int, height: int, bytesPerLine: int, format: QImage.Format): argument 2 has unexpected type 'float'
QImage(xpm: List[str]): argument 1 has unexpected type 'memoryview'
QImage(fileName: str, format: typing.Optional[str] = None): argument 1 has unexpected type 'memoryview'
QImage(a0: QImage): argument 1 has unexpected type 'memoryview'
QImage(variant: Any): too many arguments
Traceback (most recent call last):
File "/storage/sire/users/grg/miniconda3/envs/fabmos/lib/python3.11/site-packages/xmlstore/gui_qt4.py", line 910, in paint
editorclass.displayValue(self,painter,option,index)
File "/storage/sire/users/grg/miniconda3/envs/fabmos/lib/python3.11/site-packages/xmlstore/gui_qt4.py", line 839, in displayValue
qPixMap = cls.getPixMap(value,cls.width,cls.height,dpi)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/storage/sire/users/grg/miniconda3/envs/fabmos/lib/python3.11/site-packages/xmlstore/gui_qt4.py", line 825, in getPixMap
qPixMap = cls.createPixMap(value,width,height,dpi)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/storage/sire/users/grg/miniconda3/envs/fabmos/lib/python3.11/site-packages/xmlplot/gui_qt4.py", line 131, in createPixMap
qImage = QtGui.QImage(stringBuffer, width, height, QtGui.QImage.Format_ARGB32)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: arguments did not match any overloaded call:
QImage(): too many arguments
QImage(size: QSize, format: QImage.Format): argument 1 has unexpected type 'memoryview'
QImage(width: int, height: int, format: QImage.Format): argument 1 has unexpected type 'memoryview'
QImage(data: typing.Optional[bytes], width: int, height: int, format: QImage.Format): argument 2 has unexpected type 'float'
QImage(data: typing.Optional[PyQt5.sip.voidptr], width: int, height: int, format: QImage.Format): argument 2 has unexpected type 'float'
QImage(data: typing.Optional[bytes], width: int, height: int, bytesPerLine: int, format: QImage.Format): argument 2 has unexpected type 'float'
QImage(data: typing.Optional[PyQt5.sip.voidptr], width: int, height: int, bytesPerLine: int, format: QImage.Format): argument 2 has unexpected type 'float'
QImage(xpm: List[str]): argument 1 has unexpected type 'memoryview'
QImage(fileName: str, format: typing.Optional[str] = None): argument 1 has unexpected type 'memoryview'
QImage(a0: QImage): argument 1 has unexpected type 'memoryview'
QImage(variant: Any): too many arguments
Traceback (most recent call last):
File "/storage/sire/users/grg/miniconda3/envs/fabmos/lib/python3.11/site-packages/xmlstore/gui_qt4.py", line 910, in paint
editorclass.displayValue(self,painter,option,index)
File "/storage/sire/users/grg/miniconda3/envs/fabmos/lib/python3.11/site-packages/xmlstore/gui_qt4.py", line 839, in displayValue
qPixMap = cls.getPixMap(value,cls.width,cls.height,dpi)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/storage/sire/users/grg/miniconda3/envs/fabmos/lib/python3.11/site-packages/xmlstore/gui_qt4.py", line 825, in getPixMap
qPixMap = cls.createPixMap(value,width,height,dpi)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/storage/sire/users/grg/miniconda3/envs/fabmos/lib/python3.11/site-packages/xmlplot/gui_qt4.py", line 131, in createPixMap
qImage = QtGui.QImage(stringBuffer, width, height, QtGui.QImage.Format_ARGB32)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: arguments did not match any overloaded call:
QImage(): too many arguments
QImage(size: QSize, format: QImage.Format): argument 1 has unexpected type 'memoryview'
QImage(width: int, height: int, format: QImage.Format): argument 1 has unexpected type 'memoryview'
QImage(data: typing.Optional[bytes], width: int, height: int, format: QImage.Format): argument 2 has unexpected type 'float'
QImage(data: typing.Optional[PyQt5.sip.voidptr], width: int, height: int, format: QImage.Format): argument 2 has unexpected type 'float'
QImage(data: typing.Optional[bytes], width: int, height: int, bytesPerLine: int, format: QImage.Format): argument 2 has unexpected type 'float'
QImage(data: typing.Optional[PyQt5.sip.voidptr], width: int, height: int, bytesPerLine: int, format: QImage.Format): argument 2 has unexpected type 'float'
QImage(xpm: List[str]): argument 1 has unexpected type 'memoryview'
QImage(fileName: str, format: typing.Optional[str] = None): argument 1 has unexpected type 'memoryview'
QImage(a0: QImage): argument 1 has unexpected type 'memoryview'
QImage(variant: Any): too many arguments
Traceback (most recent call last):
File "/storage/sire/users/grg/miniconda3/envs/fabmos/lib/python3.11/site-packages/xmlstore/gui_qt4.py", line 910, in paint
editorclass.displayValue(self,painter,option,index)
File "/storage/sire/users/grg/miniconda3/envs/fabmos/lib/python3.11/site-packages/xmlstore/gui_qt4.py", line 839, in displayValue
qPixMap = cls.getPixMap(value,cls.width,cls.height,dpi)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/storage/sire/users/grg/miniconda3/envs/fabmos/lib/python3.11/site-packages/xmlstore/gui_qt4.py", line 825, in getPixMap
qPixMap = cls.createPixMap(value,width,height,dpi)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/storage/sire/users/grg/miniconda3/envs/fabmos/lib/python3.11/site-packages/xmlplot/gui_qt4.py", line 131, in createPixMap
qImage = QtGui.QImage(stringBuffer, width, height, QtGui.QImage.Format_ARGB32)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: arguments did not match any overloaded call:
QImage(): too many arguments
QImage(size: QSize, format: QImage.Format): argument 1 has unexpected type 'memoryview'
QImage(width: int, height: int, format: QImage.Format): argument 1 has unexpected type 'memoryview'
QImage(data: typing.Optional[bytes], width: int, height: int, format: QImage.Format): argument 2 has unexpected type 'float'
QImage(data: typing.Optional[PyQt5.sip.voidptr], width: int, height: int, format: QImage.Format): argument 2 has unexpected type 'float'
QImage(data: typing.Optional[bytes], width: int, height: int, bytesPerLine: int, format: QImage.Format): argument 2 has unexpected type 'float'
QImage(data: typing.Optional[PyQt5.sip.voidptr], width: int, height: int, bytesPerLine: int, format: QImage.Format): argument 2 has unexpected type 'float'
QImage(xpm: List[str]): argument 1 has unexpected type 'memoryview'
QImage(fileName: str, format: typing.Optional[str] = None): argument 1 has unexpected type 'memoryview'
QImage(a0: QImage): argument 1 has unexpected type 'memoryview'
QImage(variant: Any): too many arguments
Traceback (most recent call last):
File "/storage/sire/users/grg/miniconda3/envs/fabmos/lib/python3.11/site-packages/xmlstore/gui_qt4.py", line 910, in paint
editorclass.displayValue(self,painter,option,index)
File "/storage/sire/users/grg/miniconda3/envs/fabmos/lib/python3.11/site-packages/xmlstore/gui_qt4.py", line 839, in displayValue
qPixMap = cls.getPixMap(value,cls.width,cls.height,dpi)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/storage/sire/users/grg/miniconda3/envs/fabmos/lib/python3.11/site-packages/xmlstore/gui_qt4.py", line 825, in getPixMap
qPixMap = cls.createPixMap(value,width,height,dpi)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/storage/sire/users/grg/miniconda3/envs/fabmos/lib/python3.11/site-packages/xmlplot/gui_qt4.py", line 131, in createPixMap
qImage = QtGui.QImage(stringBuffer, width, height, QtGui.QImage.Format_ARGB32)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: arguments did not match any overloaded call:
QImage(): too many arguments
QImage(size: QSize, format: QImage.Format): argument 1 has unexpected type 'memoryview'
QImage(width: int, height: int, format: QImage.Format): argument 1 has unexpected type 'memoryview'
QImage(data: typing.Optional[bytes], width: int, height: int, format: QImage.Format): argument 2 has unexpected type 'float'
QImage(data: typing.Optional[PyQt5.sip.voidptr], width: int, height: int, format: QImage.Format): argument 2 has unexpected type 'float'
QImage(data: typing.Optional[bytes], width: int, height: int, bytesPerLine: int, format: QImage.Format): argument 2 has unexpected type 'float'
QImage(data: typing.Optional[PyQt5.sip.voidptr], width: int, height: int, bytesPerLine: int, format: QImage.Format): argument 2 has unexpected type 'float'
QImage(xpm: List[str]): argument 1 has unexpected type 'memoryview'
QImage(fileName: str, format: typing.Optional[str] = None): argument 1 has unexpected type 'memoryview'
QImage(a0: QImage): argument 1 has unexpected type 'memoryview'
QImage(variant: Any): too many arguments
Traceback (most recent call last):
File "/storage/sire/users/grg/miniconda3/envs/fabmos/lib/python3.11/site-packages/xmlstore/gui_qt4.py", line 910, in paint
editorclass.displayValue(self,painter,option,index)
File "/storage/sire/users/grg/miniconda3/envs/fabmos/lib/python3.11/site-packages/xmlstore/gui_qt4.py", line 839, in displayValue
qPixMap = cls.getPixMap(value,cls.width,cls.height,dpi)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/storage/sire/users/grg/miniconda3/envs/fabmos/lib/python3.11/site-packages/xmlstore/gui_qt4.py", line 825, in getPixMap
qPixMap = cls.createPixMap(value,width,height,dpi)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/storage/sire/users/grg/miniconda3/envs/fabmos/lib/python3.11/site-packages/xmlplot/gui_qt4.py", line 131, in createPixMap
qImage = QtGui.QImage(stringBuffer, width, height, QtGui.QImage.Format_ARGB32)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: arguments did not match any overloaded call:
QImage(): too many arguments
QImage(size: QSize, format: QImage.Format): argument 1 has unexpected type 'memoryview'
QImage(width: int, height: int, format: QImage.Format): argument 1 has unexpected type 'memoryview'
QImage(data: typing.Optional[bytes], width: int, height: int, format: QImage.Format): argument 2 has unexpected type 'float'
QImage(data: typing.Optional[PyQt5.sip.voidptr], width: int, height: int, format: QImage.Format): argument 2 has unexpected type 'float'
QImage(data: typing.Optional[bytes], width: int, height: int, bytesPerLine: int, format: QImage.Format): argument 2 has unexpected type 'float'
QImage(data: typing.Optional[PyQt5.sip.voidptr], width: int, height: int, bytesPerLine: int, format: QImage.Format): argument 2 has unexpected type 'float'
QImage(xpm: List[str]): argument 1 has unexpected type 'memoryview'
QImage(fileName: str, format: typing.Optional[str] = None): argument 1 has unexpected type 'memoryview'
QImage(a0: QImage): argument 1 has unexpected type 'memoryview'
QImage(variant: Any): too many arguments
Traceback (most recent call last):
File "/storage/sire/users/grg/miniconda3/envs/fabmos/lib/python3.11/site-packages/xmlstore/gui_qt4.py", line 910, in paint
editorclass.displayValue(self,painter,option,index)
File "/storage/sire/users/grg/miniconda3/envs/fabmos/lib/python3.11/site-packages/xmlstore/gui_qt4.py", line 839, in displayValue
qPixMap = cls.getPixMap(value,cls.width,cls.height,dpi)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/storage/sire/users/grg/miniconda3/envs/fabmos/lib/python3.11/site-packages/xmlstore/gui_qt4.py", line 825, in getPixMap
qPixMap = cls.createPixMap(value,width,height,dpi)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/storage/sire/users/grg/miniconda3/envs/fabmos/lib/python3.11/site-packages/xmlplot/gui_qt4.py", line 131, in createPixMap
qImage = QtGui.QImage(stringBuffer, width, height, QtGui.QImage.Format_ARGB32)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: arguments did not match any overloaded call:
QImage(): too many arguments
QImage(size: QSize, format: QImage.Format): argument 1 has unexpected type 'memoryview'
QImage(width: int, height: int, format: QImage.Format): argument 1 has unexpected type 'memoryview'
QImage(data: typing.Optional[bytes], width: int, height: int, format: QImage.Format): argument 2 has unexpected type 'float'
QImage(data: typing.Optional[PyQt5.sip.voidptr], width: int, height: int, format: QImage.Format): argument 2 has unexpected type 'float'
QImage(data: typing.Optional[bytes], width: int, height: int, bytesPerLine: int, format: QImage.Format): argument 2 has unexpected type 'float'
QImage(data: typing.Optional[PyQt5.sip.voidptr], width: int, height: int, bytesPerLine: int, format: QImage.Format): argument 2 has unexpected type 'float'
QImage(xpm: List[str]): argument 1 has unexpected type 'memoryview'
QImage(fileName: str, format: typing.Optional[str] = None): argument 1 has unexpected type 'memoryview'
QImage(a0: QImage): argument 1 has unexpected type 'memoryview'
QImage(variant: Any): too many arguments

GETM level > depth

I am not able to display the actual depth values on y-axis when plotting GETM files that has "level" as vertical dimension.
Both multiplot and pyncview display level-number on y-axis when plotting GETM nc-file variable[time,level,latc,lonc]
Is there any way to change from level to depth on y-axis?

Best regards
Johan

Opening the properties window the error message "too many arguments" appears

I am using PyNcView for the first time and everything worked so far until I got to the properties window.
As soon as I scroll down or do something else, I get the following error message:

File "C:\Users\Julia\anaconda3\lib\site-packages\xmlstore\gui_qt4.py", line 910, in paint
editorclass.displayValue(self,painter,option,index)
File "C:\Users\Julia\anaconda3\lib\site-packages\xmlstore\gui_qt4.py", line 839, in displayValue
qPixMap = cls.getPixMap(value,cls.width,cls.height,dpi)
File "C:\Users\Julia\anaconda3\lib\site-packages\xmlstore\gui_qt4.py", line 825, in getPixMap
qPixMap = cls.createPixMap(value,width,height,dpi)
File "C:\Users\Julia\anaconda3\lib\site-packages\xmlplot\gui_qt4.py", line 131, in createPixMap
qImage = QtGui.QImage(stringBuffer, width, height, QtGui.QImage.Format_ARGB32)
TypeError: arguments did not match any overloaded call:
QImage(): too many arguments
QImage(size: QSize, format: QImage.Format): argument 1 has unexpected type 'memoryview'
QImage(width: int, height: int, format: QImage.Format): argument 1 has unexpected type 'memoryview'
QImage(data: bytes, width: int, height: int, format: QImage.Format): argument 2 has unexpected type 'float'
QImage(data: PyQt5.sip.voidptr, width: int, height: int, format: QImage.Format): argument 2 has unexpected type 'float'
QImage(data: bytes, width: int, height: int, bytesPerLine: int, format: QImage.Format): argument 2 has unexpected type 'float'
QImage(data: PyQt5.sip.voidptr, width: int, height: int, bytesPerLine: int, format: QImage.Format): argument 2 has unexpected type 'float'
QImage(xpm: List[str]): argument 1 has unexpected type 'memoryview'
QImage(fileName: str, format: typing.Optional[str] = None): argument 1 has unexpected type 'memoryview'
QImage(a0: QImage): argument 1 has unexpected type 'memoryview'
QImage(variant: Any): too many arguments

It appears independently of the coordinates and the sliced dimensions I am looking at of the GETM warner test case.

Now I found out I can ignore it and at some point it disappears, but still wanted to tell you.

error loading data

I have a .nc file and have installed pyncview. the menu bar is in pyncview is populated with different variables, but when i click on them, an error window pops up with the following messages:

_Traceback (most recent call last):
File "/media/psf/Home/Documents/code/gotm/cases/blacksea/tutorial-env/lib/python3.6/site-packages/matplotlib/backend_bases.py", line 2785, in _wait_cursor_for_draw_cm
self.set_cursor(cursors.WAIT)
File "/media/psf/Home/Documents/code/gotm/cases/blacksea/tutorial-env/lib/python3.6/site-packages/xmlplot/gui_qt4.py", line 324, in set_cursor
from matplotlib.backends.backend_qt4 import cursord
File "/media/psf/Home/Documents/code/gotm/cases/blacksea/tutorial-env/lib/python3.6/site-packages/matplotlib/backends/backend_qt4.py", line 1, in
from .backend_qt5 import (
ImportError: cannot import name 'exception_handler'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/media/psf/Home/Documents/code/gotm/cases/blacksea/tutorial-env/lib/python3.6/site-packages/pyncview/pyncview.py", line 1587, in onSelectionChanged
self.figurepanel.figure.setUpdating(oldupdating)
File "/media/psf/Home/Documents/code/gotm/cases/blacksea/tutorial-env/lib/python3.6/site-packages/xmlplot/plot.py", line 691, in setUpdating
if allowupdates and self.dirty: self.update()
File "/media/psf/Home/Documents/code/gotm/cases/blacksea/tutorial-env/lib/python3.6/site-packages/xmlplot/plot.py", line 833, in update
self.canvas.draw()
File "/media/psf/Home/Documents/code/gotm/cases/blacksea/tutorial-env/lib/python3.6/site-packages/matplotlib/backends/backend_agg.py", line 392, in draw
else nullcontext()):
File "/usr/lib/python3.6/contextlib.py", line 81, in enter
return next(self.gen)
File "/media/psf/Home/Documents/code/gotm/cases/blacksea/tutorial-env/lib/python3.6/site-packages/matplotlib/backend_bases.py", line 2788, in _wait_cursor_for_draw_cm
self.set_cursor(self.lastCursor)
File "/media/psf/Home/Documents/code/gotm/cases/blacksea/tutorial-env/lib/python3.6/site-packages/xmlplot/gui_qt4.py", line 324, in set_cursor
from matplotlib.backends.backend_qt4 import cursord
File "/media/psf/Home/Documents/code/gotm/cases/blacksea/tutorial-env/lib/python3.6/site-packages/matplotlib/backends/backend_qt4.py", line 1, in
from .backend_qt5 import (
ImportError: cannot import name 'exception_handler'

pyncview crashes when reading a file created by ncdiff

Below is the error message. Any ideas what is happening here? Both individual nc files are read by pyncview without problems. Help would be very much appreciated. Cheers, Hans.

Traceback (most recent call last):
File "/home/hb/.local/lib/python3.8/site-packages/pyncview/pyncview.py", line 1587, in onSelectionChanged
self.figurepanel.figure.setUpdating(oldupdating)
File "/home/hb/.local/lib/python3.8/site-packages/xmlplot/plot.py", line 694, in setUpdating
if allowupdates and self.dirty: self.update()
File "/home/hb/.local/lib/python3.8/site-packages/xmlplot/plot.py", line 833, in update
validplot = self.draw()
File "/home/hb/.local/lib/python3.8/site-packages/xmlplot/plot.py", line 994, in draw
varslices = var.getSlice(tuple(dimbounds))
File "/home/hb/.local/lib/python3.8/site-packages/xmlplot/expressions.py", line 843, in getSlice
s = [node[bounds].getValue(dataonly=dataonly) for node in self.root]
File "/home/hb/.local/lib/python3.8/site-packages/xmlplot/expressions.py", line 843, in
s = [node[bounds].getValue(dataonly=dataonly) for node in self.root]
File "/home/hb/.local/lib/python3.8/site-packages/xmlplot/expressions.py", line 771, in getValue
return LazyExpression.argument2value(self.args[0],slices,dataonly=dataonly)
File "/home/hb/.local/lib/python3.8/site-packages/xmlplot/expressions.py", line 281, in argument2value
res = arg.getValue(extraslices=procslic,dataonly=dataonly)
File "/home/hb/.local/lib/python3.8/site-packages/xmlplot/expressions.py", line 771, in getValue
return LazyExpression.argument2value(self.args[0],slices,dataonly=dataonly)
File "/home/hb/.local/lib/python3.8/site-packages/xmlplot/expressions.py", line 281, in argument2value
res = arg.getValue(extraslices=procslic,dataonly=dataonly)
File "/home/hb/.local/lib/python3.8/site-packages/xmlplot/expressions.py", line 482, in getValue
return self.args[0].getSlice(slics,dataonly=dataonly)
File "/home/hb/.local/lib/python3.8/site-packages/xmlplot/data/netcdf.py", line 1004, in getSlice
coords_stag = xmlplot.common.broadcastSelective(coords_stag,newcoorddims,[l+1 for l in dat.shape],newdimnames)
File "/home/hb/.local/lib/python3.8/site-packages/xmlplot/common.py", line 513, in broadcastSelective
assert source.ndim==len(sourcedims), 'Number of source dimensions (%i) and source shape (%i) mismatch.' % (len(sourcedims),source.ndim)
AssertionError: Number of source dimensions (1) and source shape (2) mismatch.
Traceback (most recent call last):
File "/home/hb/.local/lib/python3.8/site-packages/pyncview/pyncview.py", line 1587, in onSelectionChanged
self.figurepanel.figure.setUpdating(oldupdating)
File "/home/hb/.local/lib/python3.8/site-packages/xmlplot/plot.py", line 694, in setUpdating
if allowupdates and self.dirty: self.update()
File "/home/hb/.local/lib/python3.8/site-packages/xmlplot/plot.py", line 833, in update
validplot = self.draw()
File "/home/hb/.local/lib/python3.8/site-packages/xmlplot/plot.py", line 994, in draw
varslices = var.getSlice(tuple(dimbounds))
File "/home/hb/.local/lib/python3.8/site-packages/xmlplot/expressions.py", line 843, in getSlice
s = [node[bounds].getValue(dataonly=dataonly) for node in self.root]
File "/home/hb/.local/lib/python3.8/site-packages/xmlplot/expressions.py", line 843, in
s = [node[bounds].getValue(dataonly=dataonly) for node in self.root]
File "/home/hb/.local/lib/python3.8/site-packages/xmlplot/expressions.py", line 771, in getValue
return LazyExpression.argument2value(self.args[0],slices,dataonly=dataonly)
File "/home/hb/.local/lib/python3.8/site-packages/xmlplot/expressions.py", line 281, in argument2value
res = arg.getValue(extraslices=procslic,dataonly=dataonly)
File "/home/hb/.local/lib/python3.8/site-packages/xmlplot/expressions.py", line 771, in getValue
return LazyExpression.argument2value(self.args[0],slices,dataonly=dataonly)
File "/home/hb/.local/lib/python3.8/site-packages/xmlplot/expressions.py", line 281, in argument2value
res = arg.getValue(extraslices=procslic,dataonly=dataonly)
File "/home/hb/.local/lib/python3.8/site-packages/xmlplot/expressions.py", line 482, in getValue
return self.args[0].getSlice(slics,dataonly=dataonly)
File "/home/hb/.local/lib/python3.8/site-packages/xmlplot/data/netcdf.py", line 1004, in getSlice
coords_stag = xmlplot.common.broadcastSelective(coords_stag,newcoorddims,[l+1 for l in dat.shape],newdimnames)
File "/home/hb/.local/lib/python3.8/site-packages/xmlplot/common.py", line 513, in broadcastSelective
assert source.ndim==len(sourcedims), 'Number of source dimensions (%i) and source shape (%i) mismatch.' % (len(sourcedims),source.ndim)
AssertionError: Number of source dimensions (1) and source shape (2) mismatch.

Wrong time units in axis label

When opening the NetCDF file in this test_dataset.zip in PyNcView and looking at its time variable, the units of the vertical axis are wrong. The units claim that the data is in "seconds since 2000-01-01 00:00:00", which are the units given in the dataset. However, PyNcView (or maybe xmlplot) has converted the values internally to days since 1970-01-01. In consequence, the shown values do not match the shown units. This is particularly confusing when looking at a single value, where the same false information is printed in text.

The mismatch is shown in the following screenshot. Every marker corresponds to one day in November 2001, as correctly shown on the x-axis, but according to the y-axis, the markers are only 1 second apart.
Screenshot from 2024-03-26 15-22-55
I think, if PyNcView (or xmlplot) converts the time-axis, the "units" should be adjusted accordingly. I've tried to identify the location where this error is made, but haven't found it yet. (I've only found a typo in line 2150 of plot.py: it's probably "tick", not "tock".)

Thanks for taking a look at this!

P.S.: I've previously observed an issue that could be related: When displaying a variable with the attribute "coordinates", then the values of the given coordinates are combined with the labels and units of the actual dimensions, leading again to a mismatch of values and labels.

Opening Settings menu/Figure Properties triggers error. Change of colomap doesn't work

Setup : Miniconda Setup from AMEMR Workshop
System : Ubuntu 22.04.4

Traceback (most recent call last):
File "/home/johannes/miniconda3/envs/amemr/lib/python3.12/site-packages/xmlstore/gui_qt4.py", line 910, in paint
editorclass.displayValue(self,painter,option,index)
File "/home/johannes/miniconda3/envs/amemr/lib/python3.12/site-packages/xmlstore/gui_qt4.py", line 839, in displayValue
qPixMap = cls.getPixMap(value,cls.width,cls.height,dpi)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/johannes/miniconda3/envs/amemr/lib/python3.12/site-packages/xmlstore/gui_qt4.py", line 825, in getPixMap
qPixMap = cls.createPixMap(value,width,height,dpi)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/johannes/miniconda3/envs/amemr/lib/python3.12/site-packages/xmlplot/gui_qt4.py", line 131, in createPixMap
qImage = QtGui.QImage(stringBuffer, width, height, QtGui.QImage.Format_ARGB32)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: arguments did not match any overloaded call:
QImage(): too many arguments
QImage(size: QSize, format: QImage.Format): argument 1 has unexpected type 'memoryview'
QImage(width: int, height: int, format: QImage.Format): argument 1 has unexpected type 'memoryview'
QImage(data: typing.Optional[bytes], width: int, height: int, format: QImage.Format): argument 2 has unexpected type 'float'
QImage(data: typing.Optional[PyQt5.sip.voidptr], width: int, height: int, format: QImage.Format): argument 2 has unexpected type 'float'
QImage(data: typing.Optional[bytes], width: int, height: int, bytesPerLine: int, format: QImage.Format): argument 2 has unexpected type 'float'
QImage(data: typing.Optional[PyQt5.sip.voidptr], width: int, height: int, bytesPerLine: int, format: QImage.Format): argument 2 has unexpected type 'float'
QImage(xpm: List[str]): argument 1 has unexpected type 'memoryview'
QImage(fileName: str, format: typing.Optional[str] = None): argument 1 has unexpected type 'memoryview'
QImage(a0: QImage): argument 1 has unexpected type 'memoryview'
QImage(variant: Any): too many arguments
Traceback (most recent call last):
File "/home/johannes/miniconda3/envs/amemr/lib/python3.12/site-packages/xmlstore/gui_qt4.py", line 910, in paint
editorclass.displayValue(self,painter,option,index)
File "/home/johannes/miniconda3/envs/amemr/lib/python3.12/site-packages/xmlstore/gui_qt4.py", line 839, in displayValue
qPixMap = cls.getPixMap(value,cls.width,cls.height,dpi)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/johannes/miniconda3/envs/amemr/lib/python3.12/site-packages/xmlstore/gui_qt4.py", line 825, in getPixMap
qPixMap = cls.createPixMap(value,width,height,dpi)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/johannes/miniconda3/envs/amemr/lib/python3.12/site-packages/xmlplot/gui_qt4.py", line 131, in createPixMap
qImage = QtGui.QImage(stringBuffer, width, height, QtGui.QImage.Format_ARGB32)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: arguments did not match any overloaded call:
QImage(): too many arguments
QImage(size: QSize, format: QImage.Format): argument 1 has unexpected type 'memoryview'
QImage(width: int, height: int, format: QImage.Format): argument 1 has unexpected type 'memoryview'
QImage(data: typing.Optional[bytes], width: int, height: int, format: QImage.Format): argument 2 has unexpected type 'float'
QImage(data: typing.Optional[PyQt5.sip.voidptr], width: int, height: int, format: QImage.Format): argument 2 has unexpected type 'float'
QImage(data: typing.Optional[bytes], width: int, height: int, bytesPerLine: int, format: QImage.Format): argument 2 has unexpected type 'float'
QImage(data: typing.Optional[PyQt5.sip.voidptr], width: int, height: int, bytesPerLine: int, format: QImage.Format): argument 2 has unexpected type 'float'
QImage(xpm: List[str]): argument 1 has unexpected type 'memoryview'
QImage(fileName: str, format: typing.Optional[str] = None): argument 1 has unexpected type 'memoryview'
QImage(a0: QImage): argument 1 has unexpected type 'memoryview'
QImage(variant: Any): too many arguments
Traceback (most recent call last):
File "/home/johannes/miniconda3/envs/amemr/lib/python3.12/site-packages/xmlstore/gui_qt4.py", line 910, in paint
editorclass.displayValue(self,painter,option,index)
File "/home/johannes/miniconda3/envs/amemr/lib/python3.12/site-packages/xmlstore/gui_qt4.py", line 839, in displayValue
qPixMap = cls.getPixMap(value,cls.width,cls.height,dpi)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/johannes/miniconda3/envs/amemr/lib/python3.12/site-packages/xmlstore/gui_qt4.py", line 825, in getPixMap
qPixMap = cls.createPixMap(value,width,height,dpi)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/johannes/miniconda3/envs/amemr/lib/python3.12/site-packages/xmlplot/gui_qt4.py", line 131, in createPixMap
qImage = QtGui.QImage(stringBuffer, width, height, QtGui.QImage.Format_ARGB32)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: arguments did not match any overloaded call:
QImage(): too many arguments
QImage(size: QSize, format: QImage.Format): argument 1 has unexpected type 'memoryview'
QImage(width: int, height: int, format: QImage.Format): argument 1 has unexpected type 'memoryview'
QImage(data: typing.Optional[bytes], width: int, height: int, format: QImage.Format): argument 2 has unexpected type 'float'
QImage(data: typing.Optional[PyQt5.sip.voidptr], width: int, height: int, format: QImage.Format): argument 2 has unexpected type 'float'
QImage(data: typing.Optional[bytes], width: int, height: int, bytesPerLine: int, format: QImage.Format): argument 2 has unexpected type 'float'
QImage(data: typing.Optional[PyQt5.sip.voidptr], width: int, height: int, bytesPerLine: int, format: QImage.Format): argument 2 has unexpected type 'float'
QImage(xpm: List[str]): argument 1 has unexpected type 'memoryview'
QImage(fileName: str, format: typing.Optional[str] = None): argument 1 has unexpected type 'memoryview'
QImage(a0: QImage): argument 1 has unexpected type 'memoryview'
QImage(variant: Any): too many arguments
Traceback (most recent call last):
File "/home/johannes/miniconda3/envs/amemr/lib/python3.12/site-packages/xmlstore/gui_qt4.py", line 910, in paint
editorclass.displayValue(self,painter,option,index)
File "/home/johannes/miniconda3/envs/amemr/lib/python3.12/site-packages/xmlstore/gui_qt4.py", line 839, in displayValue
qPixMap = cls.getPixMap(value,cls.width,cls.height,dpi)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/johannes/miniconda3/envs/amemr/lib/python3.12/site-packages/xmlstore/gui_qt4.py", line 825, in getPixMap
qPixMap = cls.createPixMap(value,width,height,dpi)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/johannes/miniconda3/envs/amemr/lib/python3.12/site-packages/xmlplot/gui_qt4.py", line 131, in createPixMap
qImage = QtGui.QImage(stringBuffer, width, height, QtGui.QImage.Format_ARGB32)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: arguments did not match any overloaded call:
QImage(): too many arguments
QImage(size: QSize, format: QImage.Format): argument 1 has unexpected type 'memoryview'
QImage(width: int, height: int, format: QImage.Format): argument 1 has unexpected type 'memoryview'
QImage(data: typing.Optional[bytes], width: int, height: int, format: QImage.Format): argument 2 has unexpected type 'float'
QImage(data: typing.Optional[PyQt5.sip.voidptr], width: int, height: int, format: QImage.Format): argument 2 has unexpected type 'float'
QImage(data: typing.Optional[bytes], width: int, height: int, bytesPerLine: int, format: QImage.Format): argument 2 has unexpected type 'float'
QImage(data: typing.Optional[PyQt5.sip.voidptr], width: int, height: int, bytesPerLine: int, format: QImage.Format): argument 2 has unexpected type 'float'
QImage(xpm: List[str]): argument 1 has unexpected type 'memoryview'
QImage(fileName: str, format: typing.Optional[str] = None): argument 1 has unexpected type 'memoryview'
QImage(a0: QImage): argument 1 has unexpected type 'memoryview'
QImage(variant: Any): too many arguments
Traceback (most recent call last):
File "/home/johannes/miniconda3/envs/amemr/lib/python3.12/site-packages/xmlstore/gui_qt4.py", line 882, in createEditor
editor = createEditor(node,parent,**self.properties)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/johannes/miniconda3/envs/amemr/lib/python3.12/site-packages/xmlstore/gui_qt4.py", line 90, in createEditor
editor = editorclass(parent,node,**kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/johannes/miniconda3/envs/amemr/lib/python3.12/site-packages/xmlplot/gui_qt4.py", line 109, in init
xmlstore.gui_qt4.StringWithImageEditor.init(self,parent,node,items,**kwargs)
File "/home/johannes/miniconda3/envs/amemr/lib/python3.12/site-packages/xmlstore/gui_qt4.py", line 808, in init
self.setIconSize(QtCore.QSize(self.width,self.height))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: arguments did not match any overloaded call:
QSize(): too many arguments
QSize(w: int, h: int): argument 1 has unexpected type 'float'
QSize(a0: QSize): argument 1 has unexpected type 'float'
Traceback (most recent call last):
File "/home/johannes/miniconda3/envs/amemr/lib/python3.12/site-packages/xmlstore/gui_qt4.py", line 910, in paint
editorclass.displayValue(self,painter,option,index)
File "/home/johannes/miniconda3/envs/amemr/lib/python3.12/site-packages/xmlstore/gui_qt4.py", line 839, in displayValue
qPixMap = cls.getPixMap(value,cls.width,cls.height,dpi)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/johannes/miniconda3/envs/amemr/lib/python3.12/site-packages/xmlstore/gui_qt4.py", line 825, in getPixMap
qPixMap = cls.createPixMap(value,width,height,dpi)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/johannes/miniconda3/envs/amemr/lib/python3.12/site-packages/xmlplot/gui_qt4.py", line 131, in createPixMap
qImage = QtGui.QImage(stringBuffer, width, height, QtGui.QImage.Format_ARGB32)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: arguments did not match any overloaded call:
QImage(): too many arguments
QImage(size: QSize, format: QImage.Format): argument 1 has unexpected type 'memoryview'
QImage(width: int, height: int, format: QImage.Format): argument 1 has unexpected type 'memoryview'
QImage(data: typing.Optional[bytes], width: int, height: int, format: QImage.Format): argument 2 has unexpected type 'float'
QImage(data: typing.Optional[PyQt5.sip.voidptr], width: int, height: int, format: QImage.Format): argument 2 has unexpected type 'float'
QImage(data: typing.Optional[bytes], width: int, height: int, bytesPerLine: int, format: QImage.Format): argument 2 has unexpected type 'float'
QImage(data: typing.Optional[PyQt5.sip.voidptr], width: int, height: int, bytesPerLine: int, format: QImage.Format): argument 2 has unexpected type 'float'
QImage(xpm: List[str]): argument 1 has unexpected type 'memoryview'
QImage(fileName: str, format: typing.Optional[str] = None): argument 1 has unexpected type 'memoryview'
QImage(a0: QImage): argument 1 has unexpected type 'memoryview'
QImage(variant: Any): too many arguments
Traceback (most recent call last):
File "/home/johannes/miniconda3/envs/amemr/lib/python3.12/site-packages/xmlstore/gui_qt4.py", line 910, in paint
editorclass.displayValue(self,painter,option,index)
File "/home/johannes/miniconda3/envs/amemr/lib/python3.12/site-packages/xmlstore/gui_qt4.py", line 839, in displayValue
qPixMap = cls.getPixMap(value,cls.width,cls.height,dpi)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/johannes/miniconda3/envs/amemr/lib/python3.12/site-packages/xmlstore/gui_qt4.py", line 825, in getPixMap
qPixMap = cls.createPixMap(value,width,height,dpi)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/johannes/miniconda3/envs/amemr/lib/python3.12/site-packages/xmlplot/gui_qt4.py", line 131, in createPixMap
qImage = QtGui.QImage(stringBuffer, width, height, QtGui.QImage.Format_ARGB32)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: arguments did not match any overloaded call:
QImage(): too many arguments
QImage(size: QSize, format: QImage.Format): argument 1 has unexpected type 'memoryview'
QImage(width: int, height: int, format: QImage.Format): argument 1 has unexpected type 'memoryview'
QImage(data: typing.Optional[bytes], width: int, height: int, format: QImage.Format): argument 2 has unexpected type 'float'
QImage(data: typing.Optional[PyQt5.sip.voidptr], width: int, height: int, format: QImage.Format): argument 2 has unexpected type 'float'
QImage(data: typing.Optional[bytes], width: int, height: int, bytesPerLine: int, format: QImage.Format): argument 2 has unexpected type 'float'
QImage(data: typing.Optional[PyQt5.sip.voidptr], width: int, height: int, bytesPerLine: int, format: QImage.Format): argument 2 has unexpected type 'float'
QImage(xpm: List[str]): argument 1 has unexpected type 'memoryview'
QImage(fileName: str, format: typing.Optional[str] = None): argument 1 has unexpected type 'memoryview'
QImage(a0: QImage): argument 1 has unexpected type 'memoryview'
QImage(variant: Any): too many arguments
Traceback (most recent call last):
File "/home/johannes/miniconda3/envs/amemr/lib/python3.12/site-packages/xmlstore/gui_qt4.py", line 910, in paint
editorclass.displayValue(self,painter,option,index)
File "/home/johannes/miniconda3/envs/amemr/lib/python3.12/site-packages/xmlstore/gui_qt4.py", line 839, in displayValue
qPixMap = cls.getPixMap(value,cls.width,cls.height,dpi)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/johannes/miniconda3/envs/amemr/lib/python3.12/site-packages/xmlstore/gui_qt4.py", line 825, in getPixMap
qPixMap = cls.createPixMap(value,width,height,dpi)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/johannes/miniconda3/envs/amemr/lib/python3.12/site-packages/xmlplot/gui_qt4.py", line 131, in createPixMap
qImage = QtGui.QImage(stringBuffer, width, height, QtGui.QImage.Format_ARGB32)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: arguments did not match any overloaded call:
QImage(): too many arguments
QImage(size: QSize, format: QImage.Format): argument 1 has unexpected type 'memoryview'
QImage(width: int, height: int, format: QImage.Format): argument 1 has unexpected type 'memoryview'
QImage(data: typing.Optional[bytes], width: int, height: int, format: QImage.Format): argument 2 has unexpected type 'float'
QImage(data: typing.Optional[PyQt5.sip.voidptr], width: int, height: int, format: QImage.Format): argument 2 has unexpected type 'float'
QImage(data: typing.Optional[bytes], width: int, height: int, bytesPerLine: int, format: QImage.Format): argument 2 has unexpected type 'float'
QImage(data: typing.Optional[PyQt5.sip.voidptr], width: int, height: int, bytesPerLine: int, format: QImage.Format): argument 2 has unexpected type 'float'
QImage(xpm: List[str]): argument 1 has unexpected type 'memoryview'
QImage(fileName: str, format: typing.Optional[str] = None): argument 1 has unexpected type 'memoryview'
QImage(a0: QImage): argument 1 has unexpected type 'memoryview'
QImage(variant: Any): too many arguments
Traceback (most recent call last):
File "/home/johannes/miniconda3/envs/amemr/lib/python3.12/site-packages/xmlstore/gui_qt4.py", line 910, in paint
editorclass.displayValue(self,painter,option,index)
File "/home/johannes/miniconda3/envs/amemr/lib/python3.12/site-packages/xmlstore/gui_qt4.py", line 839, in displayValue
qPixMap = cls.getPixMap(value,cls.width,cls.height,dpi)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/johannes/miniconda3/envs/amemr/lib/python3.12/site-packages/xmlstore/gui_qt4.py", line 825, in getPixMap
qPixMap = cls.createPixMap(value,width,height,dpi)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/johannes/miniconda3/envs/amemr/lib/python3.12/site-packages/xmlplot/gui_qt4.py", line 131, in createPixMap
qImage = QtGui.QImage(stringBuffer, width, height, QtGui.QImage.Format_ARGB32)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: arguments did not match any overloaded call:
QImage(): too many arguments
QImage(size: QSize, format: QImage.Format): argument 1 has unexpected type 'memoryview'
QImage(width: int, height: int, format: QImage.Format): argument 1 has unexpected type 'memoryview'
QImage(data: typing.Optional[bytes], width: int, height: int, format: QImage.Format): argument 2 has unexpected type 'float'
QImage(data: typing.Optional[PyQt5.sip.voidptr], width: int, height: int, format: QImage.Format): argument 2 has unexpected type 'float'
QImage(data: typing.Optional[bytes], width: int, height: int, bytesPerLine: int, format: QImage.Format): argument 2 has unexpected type 'float'
QImage(data: typing.Optional[PyQt5.sip.voidptr], width: int, height: int, bytesPerLine: int, format: QImage.Format): argument 2 has unexpected type 'float'
QImage(xpm: List[str]): argument 1 has unexpected type 'memoryview'
QImage(fileName: str, format: typing.Optional[str] = None): argument 1 has unexpected type 'memoryview'
QImage(a0: QImage): argument 1 has unexpected type 'memoryview'
QImage(variant: Any): too many arguments
Traceback (most recent call last):
File "/home/johannes/miniconda3/envs/amemr/lib/python3.12/site-packages/xmlstore/gui_qt4.py", line 910, in paint
editorclass.displayValue(self,painter,option,index)
File "/home/johannes/miniconda3/envs/amemr/lib/python3.12/site-packages/xmlstore/gui_qt4.py", line 839, in displayValue
qPixMap = cls.getPixMap(value,cls.width,cls.height,dpi)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/johannes/miniconda3/envs/amemr/lib/python3.12/site-packages/xmlstore/gui_qt4.py", line 825, in getPixMap
qPixMap = cls.createPixMap(value,width,height,dpi)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/johannes/miniconda3/envs/amemr/lib/python3.12/site-packages/xmlplot/gui_qt4.py", line 131, in createPixMap
qImage = QtGui.QImage(stringBuffer, width, height, QtGui.QImage.Format_ARGB32)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: arguments did not match any overloaded call:
QImage(): too many arguments
QImage(size: QSize, format: QImage.Format): argument 1 has unexpected type 'memoryview'
QImage(width: int, height: int, format: QImage.Format): argument 1 has unexpected type 'memoryview'
QImage(data: typing.Optional[bytes], width: int, height: int, format: QImage.Format): argument 2 has unexpected type 'float'
QImage(data: typing.Optional[PyQt5.sip.voidptr], width: int, height: int, format: QImage.Format): argument 2 has unexpected type 'float'
QImage(data: typing.Optional[bytes], width: int, height: int, bytesPerLine: int, format: QImage.Format): argument 2 has unexpected type 'float'
QImage(data: typing.Optional[PyQt5.sip.voidptr], width: int, height: int, bytesPerLine: int, format: QImage.Format): argument 2 has unexpected type 'float'
QImage(xpm: List[str]): argument 1 has unexpected type 'memoryview'
QImage(fileName: str, format: typing.Optional[str] = None): argument 1 has unexpected type 'memoryview'
QImage(a0: QImage): argument 1 has unexpected type 'memoryview'
QImage(variant: Any): too many arguments

Properties tab issue

Trying out pyncview I got the following error when using the "properties" tab:

Traceback (most recent call last):
File "/opt/anaconda3/envs/pncview/lib/python3.11/site-packages/xmlplot/gui_qt4.py", line 562, in onAdvancedClicked
self.dialogAdvanced.resizeColumns()
File "/opt/anaconda3/envs/pncview/lib/python3.11/site-packages/xmlstore/gui_qt4.py", line 1772, in resizeColumns
if self.tree.columnWidth(0)>maxwidth: self.tree.setColumnWidth(0,maxwidth)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: setColumnWidth(self, column: int, width: int): argument 2 has unexpected type 'float'

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.