Skip to content

Geometry.save is not an app #37

Answered by svandenhaute
tbraeckevelt asked this question in Q&A
Discussion options

You must be logged in to vote

save() is an instance method, so you need to call it on an existing geometry, you cannot call it on a future of a geometry:

geometry = ...  # 
geometry.save(my_path)  # OK
future_of_geometry.save(my_path)  # will not work because Parsl Futures do not know what `save` is

To avoid writing an app for this, you can use the Dataset functionality, which works in both cases:

Dataset([future_of_geometry]).save(path_out)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by tbraeckevelt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants