Bug #957
closedCan't choose output directory.
0%
Description
On many of the appion processing pages users are unable to choose their output directory. This can lead to some obvious problems. All myami code which generates data needs to allow the user to select the output directory.
Updated by Eric Hou about 14 years ago
- Target version changed from Appion/Leginon 2.1.0 to Appion/Leginon 2.2.0
Updated by Lauren Fisher about 14 years ago
I think the only problem is there is a flag in the php code that disables the input box, which prevents user input. For example in uploadstack.php the code for the Output directory box is:
echo docpop('outdir','<b>Output directory:</b>');
echo "<br/>\n";
echo "<input type='text' name='disoutdir' value='$outdir' size='40' disabled/>\n";
echo "<input type='hidden' name='outdir' value='$outdir'/>\n";
When I remove the "disabled" flag in the code output directory box becomes active. Is there any reason why the programmer initially wanted this feature disabled? What are the problems if the user cannot control the output directory? I think I can handle this bug if you want to reassign it to me, Eric.
Updated by Eric Hou about 14 years ago
- Assignee changed from Eric Hou to Lauren Fisher
Yes, that is only thing you need to do. Neil was showing this in the Appion development meeting couple month ago.
You have searched all the files under processing folder using "Output Directory"
I guess most of the files already convert to be able to edit the output directory.
Since we are letting user to input any output directory location, we might need to do a validation in the feature.
Thanks.
Eric
Updated by Lauren Fisher about 14 years ago
- Status changed from New to In Code Review
- Assignee changed from Lauren Fisher to Eric Hou
Updated by Lauren Fisher about 14 years ago
Make sure output directories are all active and able to be edited by user. PHP code review on:
uploadTemplateStack.php - r15097, r15110
jumpSubStack.php - r15098, r15104
uploadstack.php - r15099, r15105
uploadtemplate.php - r15100, r15107
uploadimage.php - r15101, r15109
alignSubStack.php - r15111
applyJunkCutoff.php - r15147
coranSubStack.php - r15148
postproc.php - r15149
sortJunk.php - r15150
runClusterCoran.php - r15151, r15200
uploadrecon.php, uploadXmippRecon.php - r15183
uploadFrealign.php =- r15185
Updated by Lauren Fisher about 14 years ago
r15184 reset uploadimage.php to the original layout which has no output directory input. Anchi pointed out that if you are uploading images to a new session there will be no default output directory and the user would have to input one from scratch. This is dangerous. In addition, if you are uploading more images to a session they must all go to the same location. Giving the user the ability to input the directory opens up a lot of room for error and will most certainly cause problems down the road if they are uploading images in the same session to different directories. If there are any other tools that have been changed that will present problems such as this one, let me know and I will change them back. Also, I am refraining from editing the tomography tools at this point because I have never used them and do not know how they work. If someone else wants to take these on, please do so.
Updated by Anchi Cheng about 14 years ago
runClusterCoran.php and other clustering routines may not be a good candidate for editable outdir because it uses the feature analysis runname and does not record its own path in the database. However, I see that apClusterStackData does have path taken from rundir
Neil, would there be a problem if the feature analysis and clustering use different rundir?
Updated by Neil Voss about 14 years ago
Clustering needs to be run in the same directory as feature analysis, they are linked together.
Updated by Eric Hou about 14 years ago
- Status changed from In Code Review to In Test
- Assignee changed from Eric Hou to Amber Herold
Updated by Lauren Fisher about 14 years ago
r15200 disabled the output directory in runClusterCoran.php and added a note explaining to the user why it can't be edited. This is linked to bug #1097 as well.
Updated by Amber Herold almost 14 years ago
- Status changed from In Test to Closed