Comments (7)
oup! looks like we need a shutil.rmtree. Give me a few minutes to look into this!
from deid.
Could you please show me the way you are invoking clean? If done with a general client, we can't just delete the entire folder at the end of a function call (we lose the files!) and so we would want to remove the directory given some circumstances. Let me know your calls and I'll figure out the best approach!
from deid.
from deid.
hey @fimafurman ! I'm bad so I didn't test this, but would you care to do the honors? Here is the PR and the branch #69. The exit_ was a good idea, but we can't be sure that the user doesn't want the folder to exist after exiting python. So instead I create the folder on init, and then remote it and only re-create it given that a save is called. In your case, it shouldn't be called so you shouldn't see the extra temporary folders created. Let me know if it works, and I can merge and upload to pypi.
from deid.
from deid.
I tested my workflow and the folder is properly deleted right after creation. Not sure if there's a way to just come up with the safe name, or whether the file could be created only when needed.
from deid.
Yes! Let me try this, I have an idea.
from deid.
Related Issues (20)
- get skull pixel data HOT 12
- Specify more than one coordinates in the filter HOT 37
- Error on get_files import HOT 4
- ImportError: cannot import name 'clean_pixel_data' from 'deid.dicom.pixels' HOT 9
- Minimum Required Versions - Python >=3.7; Numpy >= 1.20 HOT 10
- Update documentation with correct package name ("deid-data" -> "deid") HOT 2
- Add pre-commit for linting HOT 1
- Photometric Interpretation of the dataset is YBG_FULL_422 [...] You may need to change the Photometric Interpretation to the correct value HOT 14
- BLANK Action only applicable to US and SS VRs HOT 3
- Tags within sequences (nested fields) are not affected by header actions HOT 2
- REPLACE action fails on numeric VR HOT 1
- Documentation Issue - Recipe Headers HOT 2
- Circular import for config HOT 3
- Possible incorrect coordinate definition HOT 5
- Anonymise DICOM pixel data using OCR HOT 8
- How to specify Private tags in the recipes HOT 6
- Deidentification Exception in Filters
- DEID dropping UIDs HOT 11
- (7fe0, 0010) Pixel Data doesn't appear in the dictionary when using get_identifiers HOT 4
- Recipe loading failure should result as an exception HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deid.