ParaView issueshttps://gitlab.kitware.com/paraview/paraview/-/issues2024-03-07T20:47:38-05:00https://gitlab.kitware.com/paraview/paraview/-/issues/9852Add a carpet plot view2024-03-07T20:47:38-05:00Kitware RobotAdd a carpet plot view**This issue was created automatically from an original [Mantis Issue](http://paraview.org/Bug/view.php?id=9852). Further discussion may take place here.**
---
This view should take a 2D dataset and render it as a carpet plot using a c...**This issue was created automatically from an original [Mantis Issue](http://paraview.org/Bug/view.php?id=9852). Further discussion may take place here.**
---
This view should take a 2D dataset and render it as a carpet plot using a custom mapper to avoid the memory cost of converting it to polydata and warping it. It should also have decent x-y-z axis.5.13 (Summer 2024)https://gitlab.kitware.com/paraview/paraview/-/issues/22391Right click menu context is incorrect2024-03-07T20:23:59-05:00W. Alan ScottRight click menu context is incorrectThe right click menu context is incorrect. Please check all menu items. Here is a trivial replicator for Edit Color.
* 5.12.0-RC1, Windows, builtin server.
* Sources/ Box. Apply.
* Sources/ Box. Center 1.2, 0, 0. Apply.
* Reset.
* R...The right click menu context is incorrect. Please check all menu items. Here is a trivial replicator for Edit Color.
* 5.12.0-RC1, Windows, builtin server.
* Sources/ Box. Apply.
* Sources/ Box. Center 1.2, 0, 0. Apply.
* Reset.
* Right mouse click on the left box. This one is the first box, and is NOT selected in the pipeline browser.
* Edit Color. Black. OK.
The right block changes to black. This is a bug.
![image](/uploads/1fba9f9530cd0ab423e4b78884f86fe3/image.png)5.13 (Summer 2024)https://gitlab.kitware.com/paraview/paraview/-/issues/22346Scatter Plot Filter will not work on a Partitioned Dataset Collection2023-10-25T09:51:47-04:00Phil SmithScatter Plot Filter will not work on a Partitioned Dataset CollectionTo repeat the issue perform the following steps:
1. With the IOSS reader, Open disk_out_ref.ex2, Apply
2. Select Filters->ScatterPlot, Apply
The Following error is displayed and the Scatter Plot is blank:
Warning: In vtkSMOutputPort.cx...To repeat the issue perform the following steps:
1. With the IOSS reader, Open disk_out_ref.ex2, Apply
2. Select Filters->ScatterPlot, Apply
The Following error is displayed and the Scatter Plot is blank:
Warning: In vtkSMOutputPort.cxx, line 141
vtkSMOutputPort (0x7ff688a44fe0): GetSelectorForCompositeId(compositeIndex) called for a non-multiblock dataset.
Warning: In vtkSMOutputPort.cxx, line 141
vtkSMOutputPort (0x7ff688a44fe0): GetSelectorForCompositeId(compositeIndex) called for a non-multiblock dataset.
ERROR: In vtkMultiBlockDataSet.cxx, line 67
vtkMultiBlockDataSet (0x600010a6fb10): vtkPartitionedDataSetCollection cannot be added as a block.
It appears this filter need to be updated to handle the Partitioned Data Set Collection. This is because if I apply the Convert To Multiblock filter first, the Scatter Plot Filter works fine.
This problem is affecting a user, but we do have a workaround.
With the Legacy Exodus Reader, the two steps above work fine.5.13 (Summer 2024)https://gitlab.kitware.com/paraview/paraview/-/issues/22278The window arrangement dose not load the main window in the proper place when...2023-08-24T12:02:46-04:00Phil SmithThe window arrangement dose not load the main window in the proper place when recalled on Windows and MacWhen saving a window arrangement on Mac and Windows( Linux appears to work properly), if you have you views that are detached from your main window, it will not load the main window in the proper location. I tested this on ParaView v5.11...When saving a window arrangement on Mac and Windows( Linux appears to work properly), if you have you views that are detached from your main window, it will not load the main window in the proper location. I tested this on ParaView v5.11.1 Master on all three platforms. When you load the window arrangement, that has been saved, the main window will load in the center of the current display. The detached views load in the locations where they were saved. Here is an example of what I saved( I have used my Mac in this example):
![image.png](/uploads/9652f827ae25c048019c693ceaee044c/image.png)
And then this is how it Loaded:
![image.png](/uploads/148c57e4e47510966a9fb1e8ddbf21a5/image.png)
If you will notice the main window stayed where it was when ParaView was loaded, however the rest of the views loaded where they saved at. The main window should have shifted to where it was originally saved at.
I have a suggestion that will make this potentially easier to manage. We can stack the windows vertically on either side within the main window. However we can only have one column on each side of the main window. How hard would it be to be able to stack the windows side by side as well? This would correct this problem. Typically a monitor is wider than it is tall, so this would make the best use of the screen real estate.
In addition, when opening ParaView with all of the views detached, only the main window opens up. In order to get the views to appear, Load Window Arrangement or selecting each view that you want is necessary. The solution that I have suggested above will fix this problem as well, because I have noticed when you close ParaView and then re-open it, the views will remain where they were the last time they were used, as long as they are docked within the main window. This way the user will not have to perform the additional step of loading the window arrangement when he re-opens ParaView.5.13 (Summer 2024)https://gitlab.kitware.com/paraview/paraview/-/issues/22200Add dropdown menu for scalars and vectors within the Python Calculator and th...2023-06-27T10:05:45-04:00Phil SmithAdd dropdown menu for scalars and vectors within the Python Calculator and the Programable FilterWithin the Calculator Filter there are drop-down menus that you can select and insert both scalers and vectors into the formula . This has proved very useful. I would suggest that we do the same with the Python Calculator and the Program...Within the Calculator Filter there are drop-down menus that you can select and insert both scalers and vectors into the formula . This has proved very useful. I would suggest that we do the same with the Python Calculator and the Programable Filter, if for no other reason than to supply the user with the variables that can be used within those filters.5.13 (Summer 2024)https://gitlab.kitware.com/paraview/paraview/-/issues/22167Mac Pro with AMD Radeon Pro W5500X throws a frame buffer warning. But ParaVie...2023-06-12T03:39:47-04:00Phil SmithMac Pro with AMD Radeon Pro W5500X throws a frame buffer warning. But ParaView does not uncheck the option in properties panelOn My Mac Pro with AMD Radeon Pro W5500X it still gives that irritating waring, but as Cory says, it does give some useful information. However, even though it says that is is disabling the floating point framebuffer, it still is checked...On My Mac Pro with AMD Radeon Pro W5500X it still gives that irritating waring, but as Cory says, it does give some useful information. However, even though it says that is is disabling the floating point framebuffer, it still is checked as active in the properties panel.:
https://gitlab.kitware.com/paraview/paraview/uploads/5580523859737e2033e157197bc13a0f/image.png
![image](/uploads/d6ca8e6a28a15a0cd1172aa5fec8420c/image.png)
Can we get it to uncheck or hide the Use Floating point Frame buffer in the properties panel with the AMD Radeon graphics card, so the message and the checkbox are consistent?
I looked on my MacBook Pro with Intel Iris Plus Graphics 655, and did not see the Use Floating Point Frame Buffer option or the warning with v5.11.1 master.5.13 (Summer 2024)https://gitlab.kitware.com/paraview/paraview/-/issues/22164Spreadsheet data is Different between Mac and Linux2023-06-07T09:24:54-04:00Phil SmithSpreadsheet data is Different between Mac and LinuxWith MacOSx86 Paraview 5.11.1 master this is working differently with Linux Master when using data from [test2.vtk](https://gitlab.kitware.com/paraview/paraview/uploads/ffcd2f4e963b9286bd519e97a74ac3f1/test2.vtk) I used a spreadsheet vie...With MacOSx86 Paraview 5.11.1 master this is working differently with Linux Master when using data from [test2.vtk](https://gitlab.kitware.com/paraview/paraview/uploads/ffcd2f4e963b9286bd519e97a74ac3f1/test2.vtk) I used a spreadsheet view to look at the data. On the Mac when you tetrahedralize there are 20 cells of the line type. The same is true with Linux.
When the Clip is applied X normal there are 10 cells of type line on both. This is good so far.
Where it gets weird, is if a Y normal, or a Z normal clip is selected. On the Mac it appears to work correctly. There are 20 cell types of line on both the Y and the Z normal. This looks correct.
However on the Linux side, if a Y normal or a Z normal clip is applied there is no cell data, point data, or any other data showing in the spreadsheet view. This was unexpected, because on both the Mac and Linux the line is still visible in the RenderView. I would assume that because of this, both point and cell data should be present in the spreadsheet view, like it appears on the Mac. Here is what I see for cell data (Point Data is the same, The Mac has point data and Linux doesn't) :
Mac:
![image](/uploads/4b24ac181193c89d0b3dc80e090e73a7/image.png)
Linux:
![image](/uploads/e30b9b6e76ab8cefffb240f4c5b49ba8/image.png)5.13 (Summer 2024)https://gitlab.kitware.com/paraview/paraview/-/issues/22126Using a programable filter after a scalar clip will not return min/max in a t...2024-03-07T20:23:56-05:00Phil SmithUsing a programable filter after a scalar clip will not return min/max in a table**To reproduce this error perform the following:**
**Manual reproduction:**
- Open spcta_a.0*; Apply
- Select all cell arrays; Apply
- Perform a clip
- Select Scalar
- Select Temperature (ev)
- Select reset using current data values
-...**To reproduce this error perform the following:**
**Manual reproduction:**
- Open spcta_a.0*; Apply
- Select all cell arrays; Apply
- Perform a clip
- Select Scalar
- Select Temperature (ev)
- Select reset using current data values
- Unselect Invert; Apply
- Add a programmable filter:
- Set Output Data Set Type to vtkTable
- Select Copy Arrays
- within the script window use the following:
```
from paraview.vtk.numpy_interface import algorithms as np
input0 = inputs[0]
array = input0.CellData['Mass (g) - 2']
val = np.mean(array)
if type(val).__name__ == "VTKNoneArray":
val = -100
output.RowData.append(val, 'T - 1 (mean)')
val = np.std(array)
if type(val).__name__ == "VTKNoneArray":
val = -100
output.RowData.append(val, 'T - 1 (std)')
val = np.min(array)
if type(val).__name__ == "VTKNoneArray":
val = -100
output.RowData.append(val, 'T - 1 (min)')
val = np.max(array)
if type(val).__name__ == "VTKNoneArray":
val = -100
output.RowData.append(val, 'T - 1 (max)')`
```
- Apply
**I get this error:**
```
Traceback (most recent call last):
File "<string>", line 22, in <module>
File "<string>", line 15, in RequestData
File "/Snip/lib/python3.9/site-packages/vtkmodules/numpy_interface/algorithms.py", line 399, in min
return _global_func(MinImpl(), array, axis, controller)
File "/Snip/lib/python3.9/site-packages/vtkmodules/numpy_interface/algorithms.py", line 184, in _global_func
res = impl.serial_composite(array, axis)
File "/Snip/lib/python3.9/site-packages/vtkmodules/numpy_interface/algorithms.py", line 387, in serial_composite
res = _apply_func2(algs.min, array, (axis,))
File "/Snip/lib/python3.9/site-packages/vtkmodules/numpy_interface/algorithms.py", line 48, in _apply_func2
res.append(func(a, *args))
File "/Snip/lib/python3.9/site-packages/vtkmodules/numpy_interface/internal_algorithms.py", line 397, in min
ans = numpy.min(narray, axis)
File "<__array_function__ internals>", line 5, in amin
File "/Snip/lib/python3.9/site-packages/numpy/core/fromnumeric.py", line 2879, in amin
return _wrapreduction(a, np.minimum, 'min', axis, None, out,
File "/Snip/lib/python3.9/site-packages/numpy/core/fromnumeric.py", line 84, in _wrapreduction
return reduction(axis=axis, out=out, **passkwargs)
File "/Snip/lib/python3.9/site-packages/numpy/core/_methods.py", line 44, in _amin
return umr_minimum(a, axis, None, out, keepdims, initial, where)
ValueError: zero-size array to reduction operation minimum which has no identity
```
**As stated above, I have copied the arrays from the clip to the programable filter, but the programable filter does not show the arrays that are in the clip, or a min and max that should be derived from the clip by using this filter. It does show a mean and an std value, so it should show a min and a max. It shouldn't through an error eather. This is wrong.**
In each of the following scripts I have placed 'snip' for the path, so they will have to be modified to be used.
**Here is another way to reproduce an error(Slightly different, but the same idea) using a script:
Run this script(no_min_after_scalarclip). : [no_min_after_scalarclip.py](/uploads/b31330bfc8e98ae9ee76f62b42069bc7/no_min_after_scalarclip.py)
It will not show a T-1 (max) 0r a T-1(min), but will produce these errors:**
```
ERROR: In vtkExecutive.cxx, line 741
vtkCompositeDataPipeline (0x2919f780): Algorithm vtkPVGeometryFilter (0x2917fbe0) returned failure for request: vtkInformation (0x291a0c20)
Debug: Off
Modified Time: 2830306
Reference Count: 1
Registered Events: (none)
Request: REQUEST_DATA_OBJECT
FROM_OUTPUT_PORT: 0
ALGORITHM_AFTER_FORWARD: 1
FORWARD_DIRECTION: 0
ERROR: In vtkExecutive.cxx, line 741
vtkCompositeDataPipeline (0x28e04e20): Algorithm vtkPVGeometryFilter (0x28dec3e0) returned failure for request: vtkInformation (0x28e062c0)
Debug: Off
Modified Time: 2830481
Reference Count: 1
Registered Events: (none)
Request: REQUEST_DATA_OBJECT
FROM_OUTPUT_PORT: 0
ALGORITHM_AFTER_FORWARD: 1
FORWARD_DIRECTION: 0
Traceback (most recent call last):
File "<string>", line 22, in <module>
File "<string>", line 15, in RequestData
File "/Snip/lib/python3.9/site-packages/vtkmodules/numpy_interface/algorithms.py", line 399, in min
return _global_func(MinImpl(), array, axis, controller)
File "/Snip/lib/python3.9/site-packages/vtkmodules/numpy_interface/algorithms.py", line 184, in _global_func
res = impl.serial_composite(array, axis)
File "/Snip/lib/python3.9/site-packages/vtkmodules/numpy_interface/algorithms.py", line 387, in serial_composite
res = _apply_func2(algs.min, array, (axis,))
File "/Snip/lib/python3.9/site-packages/vtkmodules/numpy_interface/algorithms.py", line 48, in _apply_func2
res.append(func(a, *args))
File "/Snip/lib/python3.9/site-packages/vtkmodules/numpy_interface/internal_algorithms.py", line 397, in min
ans = numpy.min(narray, axis)
File "<__array_function__ internals>", line 5, in amin
File "/Snip/lib/python3.9/site-packages/numpy/core/fromnumeric.py", line 2879, in amin
return _wrapreduction(a, np.minimum, 'min', axis, None, out,
File "/Snip/lib/python3.9/site-packages/numpy/core/fromnumeric.py", line 84, in _wrapreduction
return reduction(axis=axis, out=out, **passkwargs)
File "/Snip/lib/python3.9/site-packages/numpy/core/_methods.py", line 44, in _amin
return umr_minimum(a, axis, None, out, keepdims, initial, where)
ValueError: zero-size array to reduction operation minimum which has no identity
**However when this script is run: [min_after_planarclip.py](/uploads/da0453a970dba5188d2cab4f63a34774/min_after_planarclip.py), it will produce the min and the max, but will give theses errors:**
ERROR: In vtkExecutive.cxx, line 741
vtkCompositeDataPipeline (0x24a7f3d0): Algorithm vtkPVGeometryFilter (0x24a5f830) returned failure for request: vtkInformation (0x24a80870)
Debug: Off
Modified Time: 2532788
Reference Count: 1
Registered Events: (none)
Request: REQUEST_DATA_OBJECT
FROM_OUTPUT_PORT: 0
ALGORITHM_AFTER_FORWARD: 1
FORWARD_DIRECTION: 0
ERROR: In vtkExecutive.cxx, line 741
vtkCompositeDataPipeline (0x249fec80): Algorithm vtkPVGeometryFilter (0x249e5fe0) returned failure for request: vtkInformation (0x24a00120)
Debug: Off
Modified Time: 2532963
Reference Count: 1
Registered Events: (none)
Request: REQUEST_DATA_OBJECT
FROM_OUTPUT_PORT: 0
ALGORITHM_AFTER_FORWARD: 1
FORWARD_DIRECTION: 0
```
**This is still wrong, because it should not show theses errors at all.**
**I modified the pipeline for each of the examples above to include the Redistribute Data filter before the programable filter as a work-around. This should not have to be done.**5.13 (Summer 2024)https://gitlab.kitware.com/paraview/paraview/-/issues/22120Rotational extrusion filter throws an error when AMR data is used as a source2023-04-25T16:58:00-04:00Phil SmithRotational extrusion filter throws an error when AMR data is used as a sourceTo replicate:
Open Sources->AMR GaussianPulse Source; Apply
Filters-> clean to grid
Perform a slice on the data
Apply the Rotational extrusion filter
At this point an error pops up saying:
ERROR: In vtkRotationalExtrusionFilter.cxx...To replicate:
Open Sources->AMR GaussianPulse Source; Apply
Filters-> clean to grid
Perform a slice on the data
Apply the Rotational extrusion filter
At this point an error pops up saying:
ERROR: In vtkRotationalExtrusionFilter.cxx, line 84
vtkRotationalExtrusionFilter (0xd52f010): No data to extrude!
However the data looks fine. I have attached a picture
If the same steps are performed on an Exodus file(can.ex2), the result looks the same, however, the error does not appear.
![image](/uploads/dabe6f4920b418788a2dc9ee60d701c0/image.png)5.13 (Summer 2024)https://gitlab.kitware.com/paraview/paraview/-/issues/21775Find data panel does not support search of string values in a vtkStringArray2023-02-16T15:53:47-05:00Spiros TsalikisFind data panel does not support search of string values in a vtkStringArrayFind data panel does not support search of string values in a vtkStringArray. This is not possible because
a vtkStringArray cannot be mapped to a NumPy array which is used by the python selector, which is then used by the Find Data Pane...Find data panel does not support search of string values in a vtkStringArray. This is not possible because
a vtkStringArray cannot be mapped to a NumPy array which is used by the python selector, which is then used by the Find Data Panel. This mapping cannot be performed (as of now) because a vtkStringArray is a special array where the memory size of each value is dynamic.
This issue is the result of the following discussion:
https://discourse.paraview.org/t/interpret-values-as-categories-not-working-for-string-properties-pv-5-11-0-rc2/11155
@wascott @cory.quammen @francois.mazen5.13 (Summer 2024)Spiros TsalikisSpiros Tsalikishttps://gitlab.kitware.com/paraview/paraview/-/issues/21530Select Blocks from threshold or cell selection filter -- New feature request2024-03-07T20:23:51-05:00Phil SmithSelect Blocks from threshold or cell selection filter -- New feature requestOne of my customers would like to apply a threshold filter on a part that they created and then extract all the Blocks that are intersected by the threshold filter. If we look at the spreadsheet view of the extracted filter, we see the b...One of my customers would like to apply a threshold filter on a part that they created and then extract all the Blocks that are intersected by the threshold filter. If we look at the spreadsheet view of the extracted filter, we see the block name in the first column, so I think this would be pretty easy to implement. Please correct me if I am wrong or this needs further explanation.
Thanks,
Phil5.13 (Summer 2024)https://gitlab.kitware.com/paraview/paraview/-/issues/21401Saving screenshot with transparent and white background selected causes text ...2022-05-17T17:20:42-04:00Phil SmithSaving screenshot with transparent and white background selected causes text to disappear.Saving screenshot with transparent and white background selected causes text to disappear. Here is how to replicate this:
* Linux ParaView 5.10.1 built-in server
* Can.ex2, apply
* File->Save Screenshot, JPEG, Transparent Background, Wh...Saving screenshot with transparent and white background selected causes text to disappear. Here is how to replicate this:
* Linux ParaView 5.10.1 built-in server
* Can.ex2, apply
* File->Save Screenshot, JPEG, Transparent Background, White Background, OK
Color Legend and orientation axis text disappeared5.13 (Summer 2024)https://gitlab.kitware.com/paraview/paraview/-/issues/21379Latex for variable names2023-06-15T08:45:49-04:00Boonthanome NouanesengsyLatex for variable namesOne of our codes (Pagosa) creates paraview files which have latex code as variable names. When these variables are shown in the renderview, the variable name is correctly shown next to the colorbar. But for other gui areas, such as the v...One of our codes (Pagosa) creates paraview files which have latex code as variable names. When these variables are shown in the renderview, the variable name is correctly shown next to the colorbar. But for other gui areas, such as the variables list and variable dropdown box, the latex is not rendered, you just see the latex code. Is there some way for all gui elements to render latex properly?
See screenshot below. In the renderview, next to the colorbar, the variable name is rendered correctly. But in the dropdown variable menu and variable list in Properties, the latex code is shown.
![latex](/uploads/02b99ae453bc16f6e63eb7326d4a0a81/latex.png)
@patchett2002 @cory.quammen @yohann.bearzi5.13 (Summer 2024)https://gitlab.kitware.com/paraview/paraview/-/issues/21355PIO reader parallel performance Space and Time2024-03-07T20:23:50-05:00John PatchettPIO reader parallel performance Space and TimeThe PIO reader currently reads an entire scalar field on process zero then redistributes that across the ranks. This is slow and causes a bad malloc on large datasets. The reader needs to have multiple ranks simultaneously perform partia...The PIO reader currently reads an entire scalar field on process zero then redistributes that across the ranks. This is slow and causes a bad malloc on large datasets. The reader needs to have multiple ranks simultaneously perform partial reads and appropriately distribute the read fraction.5.13 (Summer 2024)Patricia FaselPatricia Fasel2022-08-31https://gitlab.kitware.com/paraview/paraview/-/issues/21269When loading state files, use actual timesteps2024-03-07T20:23:49-05:00W. Alan ScottWhen loading state files, use actual timestepsPlease add the option, default on, so when a state file is loaded, the number of timesteps comes from the dataset being opened, rather than the state file. State files are frequently used for opening a dataset multiple times that is in ...Please add the option, default on, so when a state file is loaded, the number of timesteps comes from the dataset being opened, rather than the state file. State files are frequently used for opening a dataset multiple times that is in the process of being written.5.13 (Summer 2024)https://gitlab.kitware.com/paraview/paraview/-/issues/21249Timers in the PIO Reader2024-03-07T20:23:48-05:00John PatchettTimers in the PIO ReaderWe need a couple of judiciously placed timers in the PIO reader to help understand performance issues when users complain about the performance.We need a couple of judiciously placed timers in the PIO reader to help understand performance issues when users complain about the performance.5.13 (Summer 2024)John PatchettJohn Patchetthttps://gitlab.kitware.com/paraview/paraview/-/issues/21140Add option in color legend to have same labels and ranges2024-03-07T20:23:48-05:00W. Alan ScottAdd option in color legend to have same labels and rangesPlease add the option to have the color legend ranges and labels use the same format. This format should probably be %-#6.3e. I know this can be manually set, but it would be nice to allow users to just click a checkbox. Make it on th...Please add the option to have the color legend ranges and labels use the same format. This format should probably be %-#6.3e. I know this can be manually set, but it would be nice to allow users to just click a checkbox. Make it on the standard dialog (not only advanced), just under Horizontal Title. Maybe call it "Consistent labels and ranges".
So, what I want is an automagic way to do the following:
* Wavelet. Apply. Surface. Color by RTData.
* Edit Color Map. Edit Color Legend.
* Advanced.
* Turn off automatic label format.
* Label Format: %-#6.3e
* Range Label Format: %-#6.3e
* OK.5.13 (Summer 2024)https://gitlab.kitware.com/paraview/paraview/-/issues/20853API to Reduce data information for symmetric mode2024-03-07T20:23:45-05:00Utkarsh AyachitAPI to Reduce data information for symmetric modeIn symmetric mode, data information is generally only gathered locally. Let's add a convenience method that should be accessible in Python that one can use to reduce data information across all ranks.In symmetric mode, data information is generally only gathered locally. Let's add a convenience method that should be accessible in Python that one can use to reduce data information across all ranks.5.13 (Summer 2024)https://gitlab.kitware.com/paraview/paraview/-/issues/20746Rewrite Ensight Gold Reader2024-03-07T20:23:45-05:00Utkarsh AyachitRewrite Ensight Gold ReaderThe EnSight readers could use some rework. They should be unified (avoid separate binary and ascii readers) and the produce PartitionedDataSetCollection instead of Multiblock.The EnSight readers could use some rework. They should be unified (avoid separate binary and ascii readers) and the produce PartitionedDataSetCollection instead of Multiblock.5.13 (Summer 2024)Caitlin RossCaitlin Rosshttps://gitlab.kitware.com/paraview/paraview/-/issues/20243ParaView mishandles byte order mark in csv/txt files2024-03-07T20:47:16-05:00Kenneth MorelandParaView mishandles byte order mark in csv/txt filesWhen you read in a delimited text file like csv or txt, the reader does not handle a [byte order mark](https://en.wikipedia.org/wiki/Byte_order_mark) (BOM) correctly. Instead of using the BOM to set the encoding (or just ignoring it), th...When you read in a delimited text file like csv or txt, the reader does not handle a [byte order mark](https://en.wikipedia.org/wiki/Byte_order_mark) (BOM) correctly. Instead of using the BOM to set the encoding (or just ignoring it), the BOM becomes part of the name of the first column. Those added characters are invisible in every label, but they foul up selecting that variable.
The following instructions, which come from [this question on discourse](https://discourse.paraview.org/t/plotting-line-from-csv-file/5469/3), replicate the issue.
1. Load [velocity_u.csv](/uploads/cf52ec0a915ada1fb3a91d31556a0b9b/velocity_u.csv). Apply.
2. Create a `Line Chart View`.
3. View the csv data in the line chart view.
4. Uncheck `Use Index For XAxis` and change `X Array Name` to `Z`.
When you try to set the X axis to the `Z` column, you get errors like this:
```
ERROR: In /Users/kitware/dashboards/buildbot-slave/a64f5607/build/superbuild/paraview/src/VTK/Charts/Core/vtkPlotPoints.cxx, line 655
vtkPlotLine (0x7fb3cd320940): No X column is set (index 0).
```
I believe what is happening is that the name of the `Z` column actually has the BOM in it. But when you put it in the Qt widget, Qt strips out the BOM. Then when you select the name in the Qt widget, it no longer matches the column name.5.13 (Summer 2024)