forked from rarias/bscpkgs
		
	rplot: add support for gziped datasets
This commit is contained in:
		
							parent
							
								
									5ac581b573
								
							
						
					
					
						commit
						b7dcf7bc69
					
				| @ -31,9 +31,16 @@ in stdenv.mkDerivation { | |||||||
|     export FONTCONFIG_PATH=${fontconfig.out}/etc/fonts |     export FONTCONFIG_PATH=${fontconfig.out}/etc/fonts | ||||||
|     mkdir -p $out |     mkdir -p $out | ||||||
|     cd $out |     cd $out | ||||||
|     ln -s ${dataset} input |     dataset="${dataset}" | ||||||
|  | 
 | ||||||
|  |     ln -s $dataset input | ||||||
|     Rscript --vanilla ${script} ${dataset} |     Rscript --vanilla ${script} ${dataset} | ||||||
|     jq -c .total_time input |\ | 
 | ||||||
|  |     if [ "''${dataset##*.}" == gz ]; then | ||||||
|  |       gunzip --stdout $dataset | ||||||
|  |     else | ||||||
|  |       cat $dataset | ||||||
|  |     fi | jq -c .total_time |\ | ||||||
|       awk '{s+=$1} END {printf "%f\n", s/60}' > total_job_time_minutes |       awk '{s+=$1} END {printf "%f\n", s/60}' > total_job_time_minutes | ||||||
|   ''; |   ''; | ||||||
| } | } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user