@@ -260,7 +260,7 @@ function parse_commandline()
260260
261261verbose = haskey (args," verbose" ) ? args[" verbose" ] : verbose
262262
263- if verbose println (now ()) end
263+ if verbose println (" # " , now ()) end
264264 # println("# Loading other packages 1/2")
265265
266266if verbose println (" # Loading other packages 2/2" ) end
@@ -517,8 +517,6 @@ df_files_cleanest = df_files_use |>
517517 @filter ( _. expmeter_mean >= args[" min_expmeter_to_pyrhelio_clean" ]* _. mean_pyroflux ) |>
518518 @filter ( extract_time_from_filename (_. Filename) >= start_time_clean ) |>
519519 @filter ( extract_time_from_filename (_. Filename) <= stop_time_clean ) |>
520- @orderby ( abs (_. hour_angle) ) |>
521- @take (args[" max_num_spectra_clean" ] ) |>
522520 DataFrame
523521
524522 if hasproperty (df_files_cleanest,:dq1level )
@@ -528,6 +526,11 @@ df_files_cleanest = df_files_use |>
528526 end
529527 println (" # Found " , size (df_files_cleanest,1 ), " files considered clean." )
530528
529+ df_files_cleanest = df_files_cleanest |>
530+ @orderby ( abs (_. hour_angle) ) |>
531+ @take (args[" max_num_spectra_clean" ] ) |>
532+ DataFrame
533+
531534if ! (size (df_files_cleanest,1 ) >= 1 )
532535 @warn (" No inputs passed all test for making clean spectra." )
533536end
@@ -612,7 +615,7 @@ pipeline_plan = PipelinePlan()
612615
613616
614617 if args[" apply_continuum_normalization" ] && args[" continuum_normalization_individually" ]
615- println (" Applying continuum normalization to each spectrum individually." )
618+ println (" # Applying continuum normalization to each spectrum individually." )
616619 local anchors, continuum, f_filtered
617620 if args[" anchors_filename" ] != nothing
618621 @assert isfile (args[" anchors_filename" ]) && filesize (args[" anchors_filename" ])> 0
@@ -660,7 +663,7 @@ pipeline_plan = PipelinePlan()
660663
661664
662665 if args[" apply_continuum_normalization" ] && ! args[" continuum_normalization_individually" ]
663- println (" Applying continuum normalization based on mean of clean spectra." )
666+ println (" # Applying continuum normalization based on mean of clean spectra." )
664667 local anchors, continuum, f_filtered
665668 if args[" anchors_filename" ] != nothing
666669 @assert isfile (args[" anchors_filename" ]) && filesize (args[" anchors_filename" ])> 0
@@ -812,7 +815,7 @@ println("# Saving results to ", daily_ccf_filename, ".")
812815 f[" drpversion" ] = max_drp_minor_version
813816 f[" file_hashes" ] = file_hashes
814817 end
815- if verbose println (now ()) end
818+ if verbose println (" # Finished at " , now ()) end
816819
817820#=
818821for (i,row) in enumerate(eachrow(df_files_use))
0 commit comments