Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
0e81992
Testing setuptools build in pyproject.toml
lassejsc Feb 13, 2026
543d2c0
vtk builddescriptor C++ module
lassejsc Feb 13, 2026
81a5aa8
Added a build process that should work and compile the C++ library too
lassejsc Feb 13, 2026
402326a
Removed unused comments from test.py
lassejsc Feb 13, 2026
27fc606
Moved cpphelpers from plugins to analysator folder
lassejsc Feb 13, 2026
1c49f9f
Minor tweaks and todo notes(ignore pls)
lassejsc Feb 13, 2026
aae5b4e
Does this fix CI runners import test?
lassejsc Feb 13, 2026
f8e04b1
Changed around datatypes to unsigned be more fitting for some integer…
lassejsc Feb 13, 2026
35aabb8
Testing whether this will include python headers for C
lassejsc Feb 13, 2026
f9740a3
Trying to get workflow to get the python header
lassejsc Feb 13, 2026
c4ddeaa
Testing stuff from https://github.com/astral-sh/uv/issues/9347
lassejsc Feb 13, 2026
89676f5
Added numpy>2.0 as requirement since there was strange issue on hile
lassejsc Feb 16, 2026
ba081b0
Revert "Added numpy>2.0 as requirement since there was strange issue …
lassejsc Feb 16, 2026
5414db9
Added the new buildDescriptor to the vlsvvtkinterface.py
lassejsc Feb 18, 2026
8df9ac1
Removed the deprecation warning because it messed things up,
lassejsc Feb 18, 2026
667303e
Const correctness fixes
lassejsc Feb 19, 2026
8714a5d
Reverting some of my pointless additions with the consts to
lassejsc Feb 19, 2026
d0764a9
Merge remote-tracking branch 'upstream/dev' into pythoncapibinding_vkt
lassejsc Feb 24, 2026
194da72
Removed cpphelpers since it is moved to back end, changed pyprojet so it
lassejsc Feb 27, 2026
299ef02
Remvoing cpphelpers, git issues didnt do it on last commit
lassejsc Feb 27, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 15 additions & 2 deletions analysator/pyVlsv/vlsvvtkinterface.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
import pickle
from operator import itemgetter
import numbers

import analysator as pt
try:
import vtk
Expand Down Expand Up @@ -643,7 +642,7 @@ def SetFileName(self, filename):
def GetFileName(self):
return self.__FileName

def buildDescriptor(self):
def buildDescriptorPython(self):
f = self.__reader
f._VlsvReader__read_fileindex_for_cellid()
fileindex_for_cellid = f._VlsvReader__fileindex_for_cellid
Expand Down Expand Up @@ -716,6 +715,20 @@ def children(cid, level):

return descr.getvalue(), idxToFileIndex

def buildDescriptor(self):
import cpphelpers
f = self.__reader
f._VlsvReader__read_fileindex_for_cellid()
fileindex_for_cellid = f._VlsvReader__fileindex_for_cellid
xc= f._VlsvReader__xcells
yc= f._VlsvReader__ycells
zc= f._VlsvReader__zcells
max_ref_level = f.get_max_refinement_level()

ret=cpphelpers.buildDescriptor(fileindex_for_cellid,xc,yc,zc,max_ref_level)
#returns descriptor as first value and second is the idxToFileIndex
return ret[0],ret[1]


def getDescriptor(self, reinit=False):

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ authors = [
{ name = "Markku Alho", email = "markku.alho@helsinki.fi"},
{ name = "Et al"},
]
maintainters = [
maintainers = [
{ name = "Markku Alho", email = "markku.alho@helsinki.fi"},
]
description = "Tools for reading and analysing Vlasiator .vlsv output files."
Expand Down