The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
Write CSV only if dataset is not empty
I am creating a couple of csv after some processing, ocassionally one or more of the datasets are empty (0 examples). Problem is they are still created as CSV that only shows the attributes and in that case, I rather skip the Write CSV operator.
I imagine I have to go with the branch operator, but I don't understand how to use it to check the numbers of example to use it as a condition.
Tagged:
0
Best Answer
-
kayman Member Posts: 662 UnicornIn the branch options you can select minimum examples with the drop down
condition type -> min_examples
condition value -> 1
So in this case your output has to have at least 1 example, otherwise it's empty5
Answers