erlang spectra computation tool
- Erlang 99.7%
- Shell 0.3%
| src | ||
| test | ||
| .gitignore | ||
| README.md | ||
| run_all_tests.bash | ||
espect
erlang spectra computation tool
Quick start
some start strings
%% cluster supervisor
application:stop(espect).
application:start(espect).
node_supervisor:start_espect_cluster(password).
cluster_supervisor:distribute_neuron_indeces().
%neuron_event_handler:trigger_load_spectra_to_neurons_workers().
neuron_initialization_manager:initialize_neurons().
neuron_event_handler:trigger_neuron_compare({compare, spectrum_dispatcher:get_spectrum_id()}).
%cluster worker
application:stop(espect).
application:start(espect).
node_supervisor:join_espect_cluster(node30@node30, password).
node_supervisor:join_espect_cluster(node30@node30, password).
lists:foreach(fun(Node) ->
rpc:call(Node, application, stop, [espect]),
rpc:call(Node, application, start, [espect]),
rpc:call(Node, node_supervisor, join_espect_cluster, [node30@node30, password]),
rpc:call(Node, node_supervisor, join_espect_cluster, [node30@node30, password])
end, [node25@node25, node26@node26, node27@node27, node28@node28, node29@node29]).
lists:foreach(fun(Node) ->
rpc:call(Node, application, start, [mnesia]),
rpc:call(Node, mnesia, change_config, [extra_db_nodes, [node30@node30]])
end, [node25@node25, node26@node26, node27@node27, node28@node28, node29@node29]).
%%% profiling
fprof:trace([start, {procs, [pid(0,119,0)]}, {file, "/var/tmp/fprof.trace"}]).
%runs a while
fprof:trace([stop]).
fprof:profile({file, "/var/tmp/fprof.trace"}).
fprof:analyse([totals, {dest, "/var/tmp/fprof_result.txt"}]).
fprof:stop().
error_logger:logfile({open, "/var/tmp/espect.log"}).
neuron_supervisor:start_link({local, testsup}, {child_specs, 0, 200, {neuron_coordinates, 0}}).
spectrum_dispatcher:reset_speclist_index().
neuron_event_handler:trigger_load_spectra_to_neurons_workers().
neuron_event_handler:trigger_neuron_compare({compare, spectrum_dispatcher:get_spectrum_with_id({global, spectrum_dispatcher})}).
neuron_event_handler:trigger_neuron_update({update, bmu_manager:get_bmu(bmu_manager)}).
bmu_manager:next_learning_step().
sample_spectra:make_sample_spectrum_bucket([100,100], "/var/tmp/sine/", 256, binary).
sample_spectra:make_sample_spectrum_bucket([5,5], "/var/tmp/sine/", 10, binary).
#cd /var/tmp/sine/
#for name in *.spec; do sed "s/\.$//g" $name |sponge $name ; done
#python render_icons_simple.py -i plain -o output -s 255 -n
new=200
old=$(($new-1))
cd /tmp/
echo "y;x;MJD;plateID;fibID" > /var/tmp/sine/zuordnung.csv
cat /var/tmp/som_$new.csv |tr ',' ';'|tr -d [\[\]] >> /var/tmp/sine/zuordnung.csv
mv /var/tmp/sine/output/web/som /var/tmp/sine/output/web/som.$old
cd /var/tmp/sine/output
python ./aspectui_csv_list_input.py
python ./data_layers_csv_list_input.py