Ido Ben-Yair

Results 26 comments of Ido Ben-Yair

> Hey @idoby, wouldn't passing `field(alias="--out")`be sufficient here? If not, would you mind clarifying why this is required? I'm using prefixes, so specifying aliases still keeps the prefix (e.g. "--experiment_label"...

> How would you deal with a dataclass with an "Alias" field being used in two different places? That would be a conflict. I didn't really get into the details...

> wouldn't passing `field(alias="--out")` be sufficient here? (iirc it doesn't use a prefix in that case, right?) No, because I'm using a dataclass called ExperimentConfig which is sent to SP...

> I would have imagined this change to be way more complicated. Does this also work if one or more union constituents have custom deserializers? I would assume so since...

> I see, I think I misunderstood the pull request. Union support was already present and this PR just adds support for the new syntax. Yes. If Python had chosen...

Hi, thanks for replying I think the older version I was using was 0.6.0, after upgrading to 0.7.2, it no longer seems to be possible to create geometry objects from...

I see now that the fem.Mesh object was able to take a numpy array, and now it requires a Geometry object, which can't be created.

Something along the lines of the following worked before I upgraded dolfinx: ```python new_connectivity = dofs[:, new_tri_dofs].reshape((-1, 3)) new_connectivity = fcpp.graph.AdjacencyList_int32(np.cast['int32'](new_connectivity)) new_index_map = fcpp.common.IndexMap(mesh.comm, 4 * index_map.size_local) new_topology = fcpp.mesh.Topology(mesh.comm,...

> Usually meshes are created with the `dolfinx.mesh.create_mesh` function, as for instance shown in: https://jsdokken.com/FEniCS23-tutorial/src/mesh_generation.html#mesh-generation This is usually easier to work with from Python, as it works on numpy arrays...

> > > Usually meshes are created with the `dolfinx.mesh.create_mesh` function, as for instance shown in: https://jsdokken.com/FEniCS23-tutorial/src/mesh_generation.html#mesh-generation This is usually easier to work with from Python, as it works on...