File tree Expand file tree Collapse file tree 4 files changed +9
-4
lines changed Expand file tree Collapse file tree 4 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 13
13
14
14
<!-- [](https://pypistats.org/packages/meshio)-->
15
15
16
- [ ![ Discord] ( https://img.shields.io/static/v1?logo=discord&label=chat&message=on%20discord&color=7289da&style=flat-square )] ( https://discord.gg/Z6DMsJh4Hr )
16
+ [ ![ Discord] ( https://img.shields.io/static/v1?logo=discord&logoColor=white& label=chat&message=on%20discord&color=7289da&style=flat-square )] ( https://discord.gg/Z6DMsJh4Hr )
17
17
18
18
[ ![ gh-actions] ( https://img.shields.io/github/workflow/status/nschloe/meshio/ci?style=flat-square )] ( https://github.com/nschloe/meshio/actions?query=workflow%3Aci )
19
19
[ ![ codecov] ( https://img.shields.io/codecov/c/github/nschloe/meshio.svg?style=flat-square )] ( https://app.codecov.io/gh/nschloe/meshio )
Original file line number Diff line number Diff line change 1
1
[metadata]
2
2
name = meshio
3
- version = 5.2.5
3
+ version = 5.2.6
4
4
author = Nico Schlömer et al.
5
5
6
6
description = I/O for many mesh formats
Original file line number Diff line number Diff line change @@ -56,10 +56,14 @@ def convert(args):
56
56
mesh .points = np .ascontiguousarray (mesh .points )
57
57
58
58
if args .sets_to_int_data :
59
- mesh .sets_to_int_data ()
59
+ mesh .point_sets_to_data ()
60
+ mesh .cell_sets_to_data ()
60
61
61
62
if args .int_data_to_sets :
62
- mesh .int_data_to_sets ()
63
+ for key in mesh .point_data :
64
+ mesh .point_data_to_sets (key )
65
+ for key in mesh .cell_data :
66
+ mesh .cell_data_to_sets (key )
63
67
64
68
# write it out
65
69
kwargs = {"file_format" : args .output_format }
Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ def test_convert(tmp_path):
36
36
"gmsh" ,
37
37
"--output-format" ,
38
38
"vtk" ,
39
+ "--sets-to-int-data" ,
39
40
]
40
41
)
41
42
You can’t perform that action at this time.
0 commit comments