InsightSoftwareConsortium / InsightSoftwareConsortium/itkwidgets

How to read XDMF in notebook?

Aperta
#508 4 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Python
Stelle
624
Fork
83
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Hi all,

I couldn't get to read XDMF files in a notebook

```python
from itkwidgets import view
import vtk
filename='task7/mesh_domains.xdmf'
reader = vtk.vtkXdmfReader()
reader.SetFileName(filename)
reader.Update()
vtk_image = reader.GetOutput()

view(vtk_image)
```

It just produces a black screen:

![image](https://user-images.githubusercontent.com/40028739/185173050-6dfd2b60-c546-427e-946c-6d04b9fad29c.png)

The XDMF file I'm trying to read can be found [here](https://github.com/RemDelaporteMathurin/FESTIM-workshop/blob/main/tasks/task7/mesh_domains.xdmf).

Is it possible to read XDMF files?

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

Start by reproducing the provided Python notebook snippet with the linked task7/mesh_domains.xdmf file and inspect the resulting black view. No repository files or tests are named; done means establishing whether this XDMF input can be rendered and documenting a supported notebook path or a clear limitation.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
jupyter, jupyter-notebook, python
Ambito
data-visualization
Tipo di issue
Funzionalità
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
25/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.