Sampling should not create a file called ‘.sample.csv.temp’ by default #2029
Labels
bug
Something isn't working
feature:sampling
Related to generating synthetic data after a model is built
resolution:duplicate
This issue or pull request already exists
Environment Details
Please indicate the following details about the environment in which you found the bug:
Error Description
Calling model.sample on any single table model (at least, I didn't check others) always writes to the disk an output file, even if output_file_path is set to None. The docstring mentions:
so I'd assume no file would be created.
Either the function definition for sample() should be updated to set output_file_path=DISABLE_TMP_FILE by default, either setting None should defaults to DISABLE_TMP_FILE?
(In my case, the temporary file is problematic because I use sdv is with ray (which attempts to serialise data across multiple processes—and crashes when sdv creates this file called ".sample.csv.temp". I'd much prefer not writing to the disk, than tinkering with unique temporary files in order to not crash Python)
Steps to reproduce
N/A
See also
#1310
The text was updated successfully, but these errors were encountered: