Consider putting skin dose maps in subfolders
If a user has a large flouro dataset, and an operating system that doesn't like too many objects in one folder, eventually having all the pickles in one folder could be a problem.
Consider putting them in folders - it could either be by pk_id, or maybe by date of study? pk_id might be easier to implement.
Comments (7)
-
-
reporter That's fine - though off the top of my head I'm wondering if the exports folder paths are recorded in the db, whereas these are - go take a look, is it there, if not, make it. As long as the study date is handy, then it's not going to be hard to calculate what the path would have been, so it doesn't really matter.
Sorry, I'm rambling. I'll stop now.
-
I'll put some code together to do this and see how I get on.
-
reporter Thanks.
-
Skin dose map pickle files now saved and loaded from a folder structure of the form MEDIA_ROOT\skin_maps\yyyy\mm\dd\skin_map_X.p where yyyy, mm and dd are the year, month and day that the study took place, and X is the private key of the specific study in the database. If study_date doesn't exist, or is null, then the pickle file is saved and loaded from MEDIA_ROOT\skin_maps\skin_map_XXXX.p (I haven't checked that this bit works, as all of my data has a study_date). References issue
#398→ <<cset 6e831c78e779>>
-
reporter -
assigned issue to
-
assigned issue to
-
reporter - changed status to resolved
Added
#398to changes. Folders were implemented by @dplatten, but the feaure will now be postponed for a future release. Resolves#398→ <<cset b8710fcb97fc>>
- Log in to comment
How about year\month\day\pk_id? A bit like the exports folders?