Project

General

Profile

Developers guide » History » Version 7

Amber Herold, 04/27/2011 10:26 AM

1 1 Amber Herold
h1. Developers guide
2
3 7 Amber Herold
Proposed content:
4
# Development Tools
5
## Redmine
6
## Eclipse
7
## SVN
8
# System Overview
9
## Leginon
10
### Scope
11
### Windows Machine
12
## Appion
13
### Web Parts - web server
14
### Python Parts - processing server
15
### 3rd party apps
16
## Clusters
17
# Installing Appion for development
18
# Myami Code Tree
19
# Running the code from your sandbox
20
# Languages and Technology
21
## html, css, PHP, Python, Javascript, mySQL
22
## best practices for these
23
# Adding a new program to the pipeline
24
## python parts
25
## Web Parts
26
### launch page
27
#### parameter checking
28
### reporting pages
29
## Database Parts
30
### python side
31
### PHP side
32
# Testing
33
# Error Handling
34
# Adding Documentation
35
# Adding pop-up Help
36
# Coding standards 
37
38 1 Amber Herold
h2. Common variables used
39
40
41
42
43 3 Amber Herold
* $outdir is the directory that contains the disk, session, jobtype, but not the runname: For example: /data/appion/10dec16a/extract
44 1 Amber Herold
45 3 Amber Herold
* $rundir = $outdir + runname, For example: /data/appion/10dec16a/extract/dogrun1
46 1 Amber Herold
note: appion python code only accepts $rundir
47
48
* $description 
49
50
* $commit
51
52
* $command
53
54
* $sessiondata'
55
56
* $sessionid vs. $sessionId vs. $expid vs. $expId
57
58
* $apix vs. $pixelsize
59
60
* $box vs. $boxsize
61 4 Neil Voss
62
h2. variable dump
63
64
<pre>
65
cd ~/myami/myamiweb/processing
66
cat *.php | grep '\$[A-Za-z]' | sed 's/\$_[A-Za-z]*//' | sed 's/[^$]*\(\$[A-Za-z0-9]*\)[^$]*/\1 \
67
/g' | sort | uniq -c | sort -rn | head -50
68
</pre>
69
70
<# of occurrences> <variable name>
71
<pre>
72
1066 $command 
73
1001 $particle 
74
 943 $ 
75
 854 $expId 
76
 630 $i 
77
 387 $formAction 
78
 385 $html 
79
 366 $javascript 
80
 349 $outdir 
81
 337 $projectId 
82
 327 $runname 
83
 326 $sessionId 
84
 299 $extra 
85
 213 $description 
86
 200 $graph 
87
 198 $stackid 
88
 198 $sessioninfo 
89
 186 $apix 
90
 180 $sessiondata 
91
 162 $display 
92
 160 $title 
93
 158 $templatetable 
94
 157 $user 
95
 136 $line 
96
 131 $javafunctions 
97
 127 $heading 
98
 126 $numpart 
99
 125 $jobinfo 
100
 117 $errors 
101
 114 $stackinfo 
102
 110 $t 
103
 110 $key 
104
 109 $s 
105
 108 $templateinfo 
106
 101 $sessionpath 
107
  98 $bin 
108
  96 $tomogram 
109
  96 $sub 
110
  96 $nproc 
111
  96 $filename 
112
  94 $stackId 
113
  91 $headinfo 
114
  90 $sessionname 
115
  90 $data 
116
  89 $j 
117
  89 $cmd 
118
  89 $box 
119
  89 $alignId 
120
  86 $r 
121
</pre>
122 5 Amber Herold
123 6 Amber Herold
h3. [[Appion Testing|Automated testing]]
124 1 Amber Herold
125 6 Amber Herold
126
h3. [[Using basicReport.inc]] for PHP report pages