File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
src/ansys/geometry/core/_grpc/_services/v1 Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -94,7 +94,8 @@ def upload_file(self, **kwargs) -> dict: # noqa: D102
9494 from pathlib import Path
9595 from typing import TYPE_CHECKING , Generator
9696
97- from ansys .api .discovery .v1 .commands .file_pb2 import OpenRequest
97+ from ansys .api .discovery .v1 .commands .file_pb2 import OpenRequest , OpenMode
98+ from ansys .api .discovery .v1 .commonenums_pb2 import FileFormat
9899 import ansys .geometry .core .connection .defaults as pygeom_defaults
99100
100101 if TYPE_CHECKING : # pragma: no cover
@@ -179,7 +180,8 @@ def request_generator(
179180
180181 yield OpenRequest (
181182 data = chunk ,
182-
183+ open_mode = OpenMode .OPENMODE_NEW ,
184+ file_format = FileFormat .FILEFORMAT_DISCO ,
183185 import_options = import_options_dict ,
184186 )
185187 chunk_index += 1
You can’t perform that action at this time.
0 commit comments