Make Multi-Wavelength Light Curves for Large Samples#

Learning Goals#

By the end of this tutorial, you will be able to:

  • Parallelize the code demonstrated in the light_curve_generator notebook to get multi-wavelength light curves.

  • Launch a run using a large sample of objects, monitor the run’s progress automatically, and understand its resource usage (CPU and RAM).

  • Understand some general challenges and requirements when scaling up code.

Introduction#

This notebook shows how to collect multi-wavelength light curves for a large sample of target objects. This is a scaling-up of the light_curve_generator and assumes you are familiar with the content of that notebook.

Notebook sections are:

  • Overview: Describes functionality of the included bash script and python helper functions. Compares some parallel processing options. Introduces top and what be aware of.

  • Example 1: Shows how to launch a large-scale run using the bash script, monitor its progress automatically, and diagnose a problem (out of RAM). This method is recommended for sample sizes greater than a few hundred.

  • Example 2: Shows how to parallelize the example from the light_curve_generator notebook using the helper and python’s multiprocessing library.

  • Example 3: Details the helper parameter options and how to use them in python and bash.

  • Appendix: Contains background information including a discussion of the challenges, needs, and wants encountered when scaling up this code, and general advice for the user which can be applied to other use cases.

As written, this notebook is expected to require at least 1 CPU and 6G RAM.

Many of the bash commands below are shown in non-executable cells because they are not intended to be run in this notebook. Bash commands that are not executed below begin with the symbol $ , and those that are executed begin with !. Both types can be called from the command-line – open a new terminal and copy/paste the cell text without the beginning symbol. The bash script is not intended to be executed from within a notebook and may behave strangely if attempted. Also be aware that the script path shown in the commands below assumes you are in the same directory as this notebook. Adjust it if needed.

Overview#

Parallel processing methods: bash script vs. python’s multiprocessing#

  • Bash script: Recommended for most runs with medium to large sample sizes (>~500). Allows ZTF to use additional parallelization internally, and so is often faster (ZTF often takes the longest and returns the most data for AGN-like samples). Writes stdout and stderr to log files, useful for monitoring jobs and resource usage. Can save top output to a file to help identify CPU and RAM usage/needs.

  • Python’s multiprocessing library: Can be convenient for runs with small to medium sample sizes, up to ~500. Has drawbacks that may be significant including the inability to use ZTF’s internal parallelization and that it does not save the log output (stdout and stderr) to file. An advantage of the multiprocessing example in this notebook over the light_curve_generator is that it automatically saves the sample and light curve data to disk after loading them and can automatically skip those functions in subsequent calls and use the files instead.

The python helper#

The python “helper” is a set of wrapper functions around the same ‘code_src/’ functions used in the light_curve_generator notebook.

  • The wrappers facilitate parallelization and large-scale runs by automating tasks like saving the function outputs to files.

  • The helper does not actually implement parallelization and can only run one function per call.

  • The helper can be used in combination with any parallel processing method.

  • The helper can load top output from a file to pandas DataFrames and make some figures.

The bash script#

The bash script allows the user to collect light curves from a large scale sample with a single command and provides options to help manage and monitor the run. In a nutshell, the script does the following when called using flags that “launch a run”:

  • calls the helper to gather the requested sample and then launches jobs for each archive query in separate, parallel processes.

  • redirects stdout and stderr to log files.

  • tells the user what the process PIDs are and where the log and data files are.

  • exits, leaving the archive jobs running in the background.

In case all the archive calls need to be canceled after the script exits, the user can call the script again with a different flag to have it find and kill all the processes it launched.

While the jobs are running, the user can call the script again with a different flag to have it save top output to a log file at a user-defined interval. The helper can be used to load this file to pandas DataFrames and make some figures.

Interpreting top#

If you are unfamiliar with top, the answer to this StackExchange question contains a basic description of the fields in the output. Also, beware that top can be configured to display values in different ways (e.g., as a percentage of either a single CPU or of all available CPUs). To understand the local configuration, read the man page (run man top in a terminal), particularly the sections “SUMMARY Display” and “FIELDS / Columns Display”.

Fornax Science Console#

There are a couple of things to be aware of when running on the Fornax Science Console.

Take note of the amount of CPU and RAM available to the server type you choose when starting the session. In particular, beware that top can show a larger amount of total RAM than is actually accessible to your server due to resource sharing between users.

The Science Console is primarily intended for interactive use and will cull sessions which appear to be inactive. If you want a notebook or script to run for longer than about 30 minutes and you will not be interacting with the Console, running top during that time can help keep the session active.

Imports#

This cell will install the dependencies, if needed:

# Uncomment the next line to install dependencies if needed.
# !pip install -r requirements_scale_up.txt
import multiprocessing  # python parallelization method
import pandas as pd  # use a DataFrame to work with light-curve and other data
import sys  # add code directories to the path

sys.path.append("code_src/")
import helpers.scale_up  # python "helper" for parallelization and large scale runs
import helpers.top  # load `top` output to DataFrames and make figures
from data_structures import MultiIndexDFObject  # load light curve data as a MultiIndexDFObject
from plot_functions import create_figures  # make light curve figures

Example 1: Multi-wavelength light curves for 500,000 SDSS AGN#

This example shows how to launch a large-scale collection of light curves using the bash script, monitor its performance, and diagnose a problem (out of RAM). This run collects light curves for 500,000 SDSS objects and takes several hours to complete, but is not actually executed here. Instead, we show the bash commands and then look at logs that were generated by running the commands on 2024/03/01. If executed, the run is expected to require at least 2 CPUs and 100G RAM.

Launch the run#

# This will launch a very large scale run.
# See Example 3 for a detailed explanation of parameter options.
# If you are running this for the first time, reduce the sample size 500000 -> 50.

# run_id will be used in future calls to manage this run, and also determines the name of the output directory.
# If you are executing this, change run_id to your own value to avoid overwriting the demo logs.
$ run_id="demo-SDSS-500k"

# Execute the run.
# This will get the sample and then call all archives specified by the '-a' flag.
# Defaults will be used for all keyword arguments that are not specified.
$ bash code_src/helpers/scale_up.sh \
    -r "$run_id" \
    -j '{"get_samples": {"SDSS": {"num": 500000}}, "archives": {"ZTF": {"nworkers": 8}}}' \
    -a "Gaia HEASARC IceCube WISE ZTF"

The script will run the ‘get sample’ job, then launch the archive query jobs in parallel and exit. Archive jobs will continue running in the background until they either complete or encounter an error. Example 2 shows how to load the data.

Command output from 2024/03/01 logs:

!cat output/lightcurves-demo-SDSS-500k/logs/scale_up.sh.log
# There is a warning that the SDSS 'specObjID' column was converted from an int to a string.
# The column is immediately dropped. It is not used in the code.
*********************************************************************
**                          Run starting.                          **
run_id=SDSS-500k
base_dir=/home/jovyan/raen/fornax-demo-notebooks/light_curves/output/lightcurves-SDSS-500k
logs_dir=/home/jovyan/raen/fornax-demo-notebooks/light_curves/output/lightcurves-SDSS-500k/logs
parquet_dir=/home/jovyan/raen/fornax-demo-notebooks/light_curves/output/lightcurves-SDSS-500k/lightcurves.parquet
**                                                                 **

Build sample is starting. logfile=get_sample.log
Build sample is done. Printing the log for convenience:

-- /home/jovyan/raen/fornax-demo-notebooks/light_curves/output/lightcurves-SDSS-500k/logs/get_sample.log:
2024/03/01 20:31:27 UTC | [pid=3289] Starting build=sample
Building object sample from: ['sdss']
WARNING: OverflowError converting to IntType in column specObjID, reverting to String. [astropy.io.ascii.fastbasic]
SDSS Quasar: 500000
Object sample size, after duplicates removal: 498877
Object sample saved to: /home/jovyan/raen/fornax-demo-notebooks/light_curves/output/lightcurves-SDSS-500k/object_sample.ecsv
2024/03/01 20:36:59 UTC
--

Archive calls are starting.

[pid=3968] Gaia started. logfile=gaia.log
[pid=3972] HEASARC started. logfile=heasarc.log
[pid=3976] IceCube started. logfile=icecube.log
[pid=3980] WISE started. logfile=wise.log
[pid=3984] ZTF started. logfile=ztf.log

**                                                                  **
**                       Main process exiting.                      **
**           Jobs may continue running in the background.           **
**********************************************************************

Cancel#

You can cancel jobs at any time.

If the script is still running, press Control-C.

If the script has exited, there are two options.

  1. To cancel an individual job, kill the job’s process using:

$ pid=0000  # get the number from script output
$ kill $pid
  1. To cancel the entire run, use the -k (kill) flag:

$ bash code_src/helpers/scale_up.sh -r "$run_id" -k

Restart#

If you want to restart and skip step(s) that previously completed, run the first command again and add one or both “overwrite” flags set to false:

# use the same run_id as before
$ bash code_src/helpers/scale_up.sh \
    -r "$run_id" \
    -j '{"get_samples": {"SDSS": {"num": 500000}}, "archives": {"ZTF": {"nworkers": 8}}}' \
    -a "Gaia HEASARC IceCube WISE ZTF" \
    -d "overwrite_existing_sample=false" \
    -d "overwrite_existing_lightcurves=false"

Monitor#

There are at least three places to look for information about a run’s status.

  • Check the logs for job status or errors. The bash script will redirect stdout and stderr to log files and print out the paths for you.

  • Check for light curve (parquet) data. The script will print out the “parquet_dir”. ls this directory. You will see a subdirectory for each archive call that has completed successfully, assuming it retrieved data for the sample.

  • Watch top. The script will print the job PIDs. The script can also monitor top for you and save the output to a log file.

Logs#

# Gaia log from 2024/03/01 (success)
!cat output/lightcurves-demo-SDSS-500k/logs/gaia.log
2024/03/01 20:37:00 UTC | [pid=3968] Starting build=lightcurves, archive=gaia
INFO: Query finished. [astroquery.utils.tap.core]
Light curves saved to:
	parquet_dir=/home/jovyan/raen/fornax-demo-notebooks/light_curves/output/lightcurves-SDSS-500k/lightcurves.parquet
	file=archive=gaia/part0.snappy.parquet
2024/03/01 21:07:38 UTC
# ZTF log from 2024/03/01 (failure)
!cat output/lightcurves-demo-SDSS-500k/logs/ztf.log
2024/03/01 20:37:00 UTC | [pid=3984] Starting build=lightcurves, archive=ztf

  0%|                                                                                        | 0/50 [00:00<?, ?it/s]
  2%|█▌                                                                              | 1/50 [01:04<52:33, 64.35s/it]
  4%|███▏                                                                            | 2/50 [02:08<51:16, 64.10s/it]
  6%|████▊                                                                           | 3/50 [03:12<50:10, 64.06s/it]
  8%|██████▍                                                                         | 4/50 [04:10<47:25, 61.85s/it]
 10%|████████                                                                        | 5/50 [05:03<44:03, 58.74s/it]
 12%|█████████▌                                                                      | 6/50 [05:57<41:40, 56.84s/it]
 14%|███████████▏                                                                    | 7/50 [06:52<40:23, 56.36s/it]
 16%|████████████▊                                                                   | 8/50 [07:45<38:42, 55.30s/it]
 18%|██████████████▍                                                                 | 9/50 [08:38<37:20, 54.64s/it]
 20%|███████████████▊                                                               | 10/50 [09:31<36:08, 54.22s/it]
 22%|█████████████████▍                                                             | 11/50 [10:16<33:14, 51.15s/it]
 24%|██████████████████▉                                                            | 12/50 [11:00<31:10, 49.22s/it]
 26%|████████████████████▌                                                          | 13/50 [11:55<31:20, 50.82s/it]
 28%|██████████████████████                                                         | 14/50 [12:44<30:06, 50.19s/it]
 30%|███████████████████████▋                                                       | 15/50 [13:38<29:58, 51.38s/it]
 32%|█████████████████████████▎                                                     | 16/50 [14:31<29:26, 51.94s/it]
 34%|██████████████████████████▊                                                    | 17/50 [15:35<30:34, 55.59s/it]
 36%|████████████████████████████▍                                                  | 18/50 [16:28<29:16, 54.90s/it]
 38%|██████████████████████████████                                                 | 19/50 [17:22<28:08, 54.45s/it]
 40%|███████████████████████████████▌                                               | 20/50 [18:15<27:04, 54.15s/it]
 42%|█████████████████████████████████▏                                             | 21/50 [19:09<26:02, 53.87s/it]
 44%|██████████████████████████████████▊                                            | 22/50 [20:02<25:02, 53.65s/it]
 46%|████████████████████████████████████▎                                          | 23/50 [20:55<24:05, 53.52s/it]
 48%|█████████████████████████████████████▉                                         | 24/50 [21:49<23:12, 53.57s/it]
 50%|███████████████████████████████████████▌                                       | 25/50 [22:42<22:15, 53.42s/it]
 52%|█████████████████████████████████████████                                      | 26/50 [23:35<21:20, 53.35s/it]
 54%|██████████████████████████████████████████▋                                    | 27/50 [24:28<20:26, 53.31s/it]
 56%|████████████████████████████████████████████▏                                  | 28/50 [25:21<19:31, 53.23s/it]
 58%|█████████████████████████████████████████████▊                                 | 29/50 [26:14<18:37, 53.22s/it]
 60%|███████████████████████████████████████████████▍                               | 30/50 [27:10<17:57, 53.86s/it]
 62%|████████████████████████████████████████████████▉                              | 31/50 [28:03<17:00, 53.70s/it]
 64%|██████████████████████████████████████████████████▌                            | 32/50 [28:56<16:03, 53.55s/it]
 66%|████████████████████████████████████████████████████▏                          | 33/50 [29:51<15:17, 53.96s/it]
 68%|█████████████████████████████████████████████████████▋                         | 34/50 [30:55<15:10, 56.93s/it]
 70%|███████████████████████████████████████████████████████▎                       | 35/50 [31:48<13:57, 55.82s/it]
 72%|████████████████████████████████████████████████████████▉                      | 36/50 [32:33<12:14, 52.43s/it]
 74%|██████████████████████████████████████████████████████████▍                    | 37/50 [33:26<11:24, 52.62s/it]
 76%|████████████████████████████████████████████████████████████                   | 38/50 [34:14<10:14, 51.19s/it]
 78%|█████████████████████████████████████████████████████████████▌                 | 39/50 [35:07<09:30, 51.90s/it]
 80%|███████████████████████████████████████████████████████████████▏               | 40/50 [36:00<08:42, 52.29s/it]
 82%|████████████████████████████████████████████████████████████████▊              | 41/50 [36:44<07:28, 49.82s/it]
 84%|██████████████████████████████████████████████████████████████████▎            | 42/50 [37:38<06:46, 50.82s/it]
 86%|███████████████████████████████████████████████████████████████████▉           | 43/50 [38:31<06:00, 51.52s/it]
 88%|█████████████████████████████████████████████████████████████████████▌         | 44/50 [39:35<05:31, 55.30s/it]
 90%|███████████████████████████████████████████████████████████████████████        | 45/50 [40:28<04:33, 54.64s/it]
 92%|████████████████████████████████████████████████████████████████████████▋      | 46/50 [41:16<03:30, 52.67s/it]
 94%|██████████████████████████████████████████████████████████████████████████▎    | 47/50 [42:09<02:38, 52.87s/it]
 96%|███████████████████████████████████████████████████████████████████████████▊   | 48/50 [43:03<01:46, 53.02s/it]
 98%|█████████████████████████████████████████████████████████████████████████████▍ | 49/50 [43:56<00:53, 53.07s/it]
100%|███████████████████████████████████████████████████████████████████████████████| 50/50 [44:40<00:00, 50.35s/it]
100%|███████████████████████████████████████████████████████████████████████████████| 50/50 [44:40<00:00, 53.61s/it]
2024/03/01 21:21:48 UTC | [pid=13387] Starting worker
2024/03/01 21:21:48 UTC | [pid=13388] Starting worker
2024/03/01 21:21:48 UTC | [pid=13389] Starting worker
2024/03/01 21:21:48 UTC | [pid=13390] Starting worker
2024/03/01 21:21:48 UTC | [pid=13391] Starting worker
2024/03/01 21:21:48 UTC | [pid=13392] Starting worker
2024/03/01 21:21:48 UTC | [pid=13393] Starting worker
2024/03/01 21:21:48 UTC | [pid=13394] Starting worker

  0%|                                                                                     | 0/72397 [00:00<?, ?it/s]
  0%|                                                                        | 1/72397 [00:50<1012:25:33, 50.34s/it]
  0%|                                                                         | 101/72397 [00:51<7:13:08,  2.78it/s]
  0%|▎                                                                        | 301/72397 [00:52<1:55:59, 10.36it/s]
  1%|▍                                                                        | 401/72397 [00:52<1:17:55, 15.40it/s]
  1%|▌                                                                          | 501/72397 [00:53<56:17, 21.28it/s]
  1%|▌                                                                          | 601/72397 [00:58<58:20, 20.51it/s]
  1%|▋                                                                        | 701/72397 [01:07<1:12:15, 16.54it/s]
  1%|▋                                                                        | 701/72397 [01:25<1:12:15, 16.54it/s]
  1%|▊                                                                        | 801/72397 [01:40<2:51:25,  6.96it/s]
  1%|▉                                                                        | 901/72397 [01:41<2:03:26,  9.65it/s]
  1%|▉                                                                       | 1001/72397 [01:43<1:33:14, 12.76it/s]
  2%|█                                                                       | 1101/72397 [01:44<1:08:11, 17.43it/s]
  2%|█▏                                                                        | 1201/72397 [01:48<59:27, 19.96it/s]
  2%|█▍                                                                      | 1401/72397 [02:00<1:06:26, 17.81it/s]
  2%|█▍                                                                      | 1501/72397 [02:11<1:20:46, 14.63it/s]
  2%|█▌                                                                      | 1601/72397 [02:35<2:15:17,  8.72it/s]
  2%|█▋                                                                      | 1701/72397 [02:38<1:48:09, 10.89it/s]
  2%|█▊                                                                      | 1801/72397 [02:40<1:22:15, 14.30it/s]
  3%|█▉                                                                      | 1901/72397 [02:41<1:02:49, 18.70it/s]
  3%|█▉                                                                      | 2001/72397 [02:50<1:17:10, 15.20it/s]
  3%|██                                                                      | 2101/72397 [02:53<1:02:42, 18.68it/s]
  3%|██                                                                      | 2101/72397 [03:05<1:02:42, 18.68it/s]
  3%|██▏                                                                     | 2201/72397 [03:07<1:33:29, 12.51it/s]
  3%|██▎                                                                     | 2301/72397 [03:17<1:40:37, 11.61it/s]
  3%|██▍                                                                     | 2401/72397 [03:31<1:57:47,  9.90it/s]
  3%|██▍                                                                     | 2501/72397 [03:32<1:28:12, 13.21it/s]
  4%|██▌                                                                     | 2601/72397 [03:39<1:22:53, 14.03it/s]
  4%|██▋                                                                     | 2701/72397 [03:41<1:08:07, 17.05it/s]
  4%|██▊                                                                       | 2801/72397 [03:45<58:49, 19.72it/s]
  4%|██▊                                                                       | 2801/72397 [03:55<58:49, 19.72it/s]
  4%|██▉                                                                     | 2901/72397 [04:00<1:34:55, 12.20it/s]
  4%|██▉                                                                     | 3001/72397 [04:03<1:14:47, 15.47it/s]
  4%|███                                                                     | 3101/72397 [04:07<1:06:34, 17.35it/s]
  4%|███▏                                                                    | 3201/72397 [04:22<1:38:33, 11.70it/s]
  5%|███▎                                                                    | 3301/72397 [04:31<1:40:58, 11.40it/s]
  5%|███▎                                                                    | 3301/72397 [04:45<1:40:58, 11.40it/s]
  5%|███▍                                                                    | 3401/72397 [04:55<2:33:45,  7.48it/s]
  5%|███▍                                                                    | 3501/72397 [05:04<2:18:26,  8.29it/s]
  5%|███▌                                                                    | 3601/72397 [05:07<1:45:55, 10.82it/s]
  5%|███▋                                                                    | 3701/72397 [05:08<1:16:25, 14.98it/s]
  5%|███▊                                                                    | 3801/72397 [05:11<1:06:59, 17.06it/s]
  5%|███▉                                                                    | 3901/72397 [05:19<1:11:14, 16.03it/s]
  6%|████                                                                      | 4001/72397 [05:20<53:31, 21.30it/s]
  6%|████▏                                                                     | 4101/72397 [05:24<50:49, 22.40it/s]
  6%|████▏                                                                     | 4101/72397 [05:35<50:49, 22.40it/s]
  6%|████▏                                                                   | 4201/72397 [05:48<1:59:06,  9.54it/s]
  6%|████▎                                                                   | 4301/72397 [05:57<1:52:50, 10.06it/s]
  6%|████▍                                                                   | 4401/72397 [06:02<1:37:44, 11.60it/s]
  6%|████▍                                                                   | 4501/72397 [06:09<1:31:40, 12.34it/s]
  6%|████▌                                                                   | 4601/72397 [06:10<1:07:39, 16.70it/s]
  6%|████▊                                                                     | 4701/72397 [06:12<51:40, 21.83it/s]
  7%|████▊                                                                   | 4801/72397 [06:24<1:17:10, 14.60it/s]
  7%|█████                                                                     | 4901/72397 [06:25<58:23, 19.26it/s]
  7%|████▉                                                                   | 5001/72397 [06:42<1:39:19, 11.31it/s]
  7%|█████                                                                   | 5101/72397 [06:57<1:58:54,  9.43it/s]
  7%|█████▏                                                                  | 5201/72397 [07:05<1:48:04, 10.36it/s]
  7%|█████▏                                                                  | 5201/72397 [07:15<1:48:04, 10.36it/s]
  7%|█████▎                                                                  | 5301/72397 [07:22<2:12:28,  8.44it/s]
  7%|█████▎                                                                  | 5401/72397 [07:38<2:27:21,  7.58it/s]
  8%|█████▍                                                                  | 5501/72397 [07:38<1:44:54, 10.63it/s]
  8%|█████▌                                                                  | 5601/72397 [07:43<1:29:29, 12.44it/s]
  8%|█████▌                                                                  | 5601/72397 [07:55<1:29:29, 12.44it/s]
  8%|█████▋                                                                  | 5701/72397 [08:08<2:26:04,  7.61it/s]
  8%|█████▊                                                                  | 5801/72397 [08:10<1:46:14, 10.45it/s]
  8%|█████▊                                                                  | 5901/72397 [08:10<1:14:52, 14.80it/s]
  8%|█████▉                                                                  | 6001/72397 [08:23<1:36:12, 11.50it/s]
  8%|██████                                                                  | 6101/72397 [08:35<1:45:29, 10.47it/s]
  9%|██████▏                                                                 | 6201/72397 [08:37<1:23:09, 13.27it/s]
  9%|██████▎                                                                 | 6301/72397 [08:40<1:08:17, 16.13it/s]
  9%|██████▎                                                                 | 6301/72397 [08:55<1:08:17, 16.13it/s]
  9%|██████▎                                                                 | 6401/72397 [08:59<1:47:41, 10.21it/s]
  9%|██████▍                                                                 | 6501/72397 [09:00<1:20:38, 13.62it/s]
  9%|██████▌                                                                 | 6601/72397 [09:03<1:06:13, 16.56it/s]
  9%|██████▊                                                                   | 6701/72397 [09:04<47:20, 23.12it/s]
  9%|██████▊                                                                   | 6701/72397 [09:15<47:20, 23.12it/s]
  9%|██████▊                                                                 | 6801/72397 [09:30<1:58:46,  9.21it/s]
 10%|██████▊                                                                 | 6901/72397 [09:37<1:45:53, 10.31it/s]
 10%|██████▉                                                                 | 7001/72397 [09:47<1:48:10, 10.08it/s]
 10%|███████                                                                 | 7101/72397 [09:51<1:28:40, 12.27it/s]
 10%|███████                                                                 | 7101/72397 [10:05<1:28:40, 12.27it/s]
 10%|███████▏                                                                | 7201/72397 [10:17<2:26:36,  7.41it/s]
 10%|███████▎                                                                | 7301/72397 [10:41<3:01:46,  5.97it/s]
 10%|███████▎                                                                | 7401/72397 [10:50<2:34:37,  7.01it/s]
 10%|███████▍                                                                | 7501/72397 [11:04<2:33:44,  7.04it/s]
 10%|███████▌                                                                | 7601/72397 [11:05<1:49:23,  9.87it/s]
 10%|███████▌                                                                | 7601/72397 [11:15<1:49:23,  9.87it/s]
 11%|███████▋                                                                | 7701/72397 [11:23<2:16:53,  7.88it/s]
 11%|███████▊                                                                | 7801/72397 [11:24<1:37:10, 11.08it/s]
 11%|███████▊                                                                | 7901/72397 [11:32<1:35:05, 11.30it/s]
 11%|███████▊                                                                | 7901/72397 [11:45<1:35:05, 11.30it/s]
 11%|███████▉                                                                | 8001/72397 [11:49<2:01:24,  8.84it/s]
 11%|████████                                                                | 8101/72397 [11:54<1:39:26, 10.78it/s]
 11%|████████▏                                                               | 8201/72397 [11:56<1:17:58, 13.72it/s]
 11%|████████▍                                                                 | 8301/72397 [11:57<56:21, 18.96it/s]
 12%|████████▎                                                               | 8401/72397 [12:06<1:08:33, 15.56it/s]
 12%|████████▍                                                               | 8501/72397 [12:15<1:16:00, 14.01it/s]
 12%|████████▌                                                               | 8601/72397 [12:31<1:45:09, 10.11it/s]
 12%|████████▋                                                               | 8701/72397 [12:47<2:03:09,  8.62it/s]
 12%|████████▊                                                               | 8801/72397 [13:00<2:08:34,  8.24it/s]
 12%|████████▊                                                               | 8901/72397 [13:03<1:38:27, 10.75it/s]
 12%|████████▉                                                               | 9001/72397 [13:14<1:44:38, 10.10it/s]
 13%|█████████                                                               | 9101/72397 [13:22<1:36:57, 10.88it/s]
 13%|█████████                                                               | 9101/72397 [13:35<1:36:57, 10.88it/s]
 13%|█████████▏                                                              | 9201/72397 [14:05<3:24:53,  5.14it/s]
 13%|█████████▏                                                              | 9301/72397 [14:42<4:18:17,  4.07it/s]
 13%|█████████▎                                                              | 9401/72397 [14:47<3:16:22,  5.35it/s]
 13%|█████████▍                                                              | 9501/72397 [14:50<2:28:03,  7.08it/s]
 13%|█████████▌                                                              | 9601/72397 [14:53<1:51:46,  9.36it/s]
 13%|█████████▋                                                              | 9701/72397 [14:57<1:30:44, 11.52it/s]
 14%|█████████▋                                                              | 9801/72397 [15:01<1:15:15, 13.86it/s]
 14%|██████████                                                                | 9901/72397 [15:02<56:39, 18.38it/s]
 14%|██████████                                                                | 9901/72397 [15:15<56:39, 18.38it/s]
 14%|█████████▊                                                             | 10001/72397 [15:21<1:39:58, 10.40it/s]
 14%|█████████▉                                                             | 10101/72397 [15:37<1:59:55,  8.66it/s]
 14%|██████████                                                             | 10201/72397 [15:46<1:49:35,  9.46it/s]
 14%|██████████                                                             | 10301/72397 [15:50<1:30:34, 11.43it/s]
 14%|██████████                                                             | 10301/72397 [16:05<1:30:34, 11.43it/s]
 14%|██████████▏                                                            | 10401/72397 [16:07<1:55:31,  8.94it/s]
 15%|██████████▎                                                            | 10501/72397 [16:13<1:38:55, 10.43it/s]
 15%|██████████▍                                                            | 10601/72397 [16:13<1:11:05, 14.49it/s]
 15%|██████████▍                                                            | 10601/72397 [16:25<1:11:05, 14.49it/s]
 15%|██████████▍                                                            | 10701/72397 [16:29<1:36:59, 10.60it/s]
 15%|██████████▌                                                            | 10801/72397 [17:11<3:18:43,  5.17it/s]
 15%|██████████▋                                                            | 10901/72397 [17:37<3:37:05,  4.72it/s]
 15%|██████████▊                                                            | 11001/72397 [17:42<2:49:16,  6.05it/s]
 15%|██████████▉                                                            | 11101/72397 [17:49<2:18:01,  7.40it/s]
 15%|██████████▉                                                            | 11201/72397 [17:58<2:04:11,  8.21it/s]
 16%|███████████                                                            | 11301/72397 [17:58<1:28:00, 11.57it/s]
 16%|███████████                                                            | 11301/72397 [18:15<1:28:00, 11.57it/s]
 16%|███████████▏                                                           | 11401/72397 [18:22<2:12:54,  7.65it/s]
 16%|███████████▍                                                           | 11601/72397 [18:25<1:17:51, 13.01it/s]
 16%|███████████▍                                                           | 11601/72397 [18:35<1:17:51, 13.01it/s]
 16%|███████████▍                                                           | 11701/72397 [18:50<2:01:42,  8.31it/s]
 16%|███████████▌                                                           | 11801/72397 [19:01<1:58:23,  8.53it/s]
 16%|███████████▋                                                           | 11901/72397 [19:14<2:03:14,  8.18it/s]
 17%|███████████▊                                                           | 12001/72397 [19:33<2:21:15,  7.13it/s]
 17%|███████████▊                                                           | 12101/72397 [19:53<2:38:41,  6.33it/s]
 17%|███████████▉                                                           | 12201/72397 [20:17<3:02:17,  5.50it/s]
 17%|████████████                                                           | 12301/72397 [20:19<2:14:13,  7.46it/s]
 17%|████████████▏                                                          | 12401/72397 [20:28<2:00:23,  8.31it/s]
 17%|████████████▎                                                          | 12501/72397 [20:42<2:07:49,  7.81it/s]
 17%|████████████▎                                                          | 12601/72397 [20:45<1:38:56, 10.07it/s]
 18%|████████████▍                                                          | 12701/72397 [20:49<1:20:39, 12.33it/s]
 18%|████████████▌                                                          | 12801/72397 [20:55<1:12:08, 13.77it/s]
 18%|████████████▌                                                          | 12801/72397 [21:05<1:12:08, 13.77it/s]
 18%|████████████▋                                                          | 12901/72397 [21:12<1:42:53,  9.64it/s]
 18%|████████████▊                                                          | 13001/72397 [21:43<2:44:16,  6.03it/s]
 18%|████████████▊                                                          | 13101/72397 [22:03<2:52:17,  5.74it/s]
 18%|████████████▉                                                          | 13201/72397 [22:09<2:18:31,  7.12it/s]
 18%|█████████████                                                          | 13301/72397 [22:13<1:48:49,  9.05it/s]
 18%|█████████████                                                          | 13301/72397 [22:25<1:48:49,  9.05it/s]
 19%|█████████████▏                                                         | 13401/72397 [22:32<2:13:29,  7.37it/s]
 19%|█████████████▏                                                         | 13501/72397 [22:37<1:47:19,  9.15it/s]
 19%|█████████████▎                                                         | 13601/72397 [22:39<1:19:28, 12.33it/s]
 19%|█████████████▎                                                         | 13601/72397 [22:55<1:19:28, 12.33it/s]
 19%|█████████████▍                                                         | 13701/72397 [23:03<2:06:54,  7.71it/s]
 19%|█████████████▌                                                         | 13801/72397 [23:04<1:32:16, 10.58it/s]
 19%|█████████████▌                                                         | 13801/72397 [23:15<1:32:16, 10.58it/s]
 19%|█████████████▋                                                         | 13901/72397 [23:41<2:51:56,  5.67it/s]
 19%|█████████████▋                                                         | 14001/72397 [23:55<2:40:49,  6.05it/s]
 20%|█████████████▉                                                         | 14201/72397 [24:14<2:09:41,  7.48it/s]
 20%|██████████████                                                         | 14301/72397 [24:25<2:02:07,  7.93it/s]
 20%|██████████████                                                         | 14401/72397 [24:25<1:30:37, 10.67it/s]
 20%|██████████████▏                                                        | 14501/72397 [24:40<1:45:06,  9.18it/s]
 20%|██████████████▎                                                        | 14601/72397 [24:44<1:27:12, 11.05it/s]
 20%|██████████████▍                                                        | 14701/72397 [24:45<1:03:51, 15.06it/s]
 20%|██████████████▌                                                        | 14801/72397 [24:55<1:12:42, 13.20it/s]
 21%|███████████████                                                          | 14901/72397 [24:55<52:54, 18.11it/s]
 21%|██████████████▋                                                        | 15001/72397 [25:10<1:20:27, 11.89it/s]
 21%|██████████████▊                                                        | 15101/72397 [25:16<1:13:12, 13.04it/s]
 21%|███████████████▎                                                         | 15201/72397 [25:17<52:29, 18.16it/s]
 21%|███████████████▍                                                         | 15301/72397 [25:20<45:25, 20.95it/s]
 21%|███████████████▌                                                         | 15401/72397 [25:25<46:21, 20.49it/s]
 21%|███████████████▋                                                         | 15501/72397 [25:25<33:14, 28.52it/s]
 22%|███████████████▎                                                       | 15601/72397 [25:40<1:06:18, 14.28it/s]
 22%|███████████████▍                                                       | 15701/72397 [25:46<1:02:51, 15.03it/s]
 22%|███████████████▉                                                         | 15801/72397 [25:47<44:42, 21.10it/s]
 22%|████████████████                                                         | 15901/72397 [25:48<34:30, 27.28it/s]
 22%|████████████████▏                                                        | 16001/72397 [25:49<26:54, 34.93it/s]
 22%|████████████████▏                                                        | 16101/72397 [25:49<20:52, 44.95it/s]
 22%|████████████████▎                                                        | 16201/72397 [25:54<27:55, 33.55it/s]
 23%|████████████████▍                                                        | 16301/72397 [25:58<30:21, 30.80it/s]
 23%|████████████████▌                                                        | 16401/72397 [26:09<51:17, 18.20it/s]
 23%|████████████████▏                                                      | 16501/72397 [26:18<1:01:48, 15.07it/s]
 23%|████████████████▋                                                        | 16601/72397 [26:18<43:37, 21.32it/s]
 23%|████████████████▉                                                        | 16801/72397 [26:22<31:20, 29.56it/s]
 23%|█████████████████                                                        | 16901/72397 [26:22<24:31, 37.71it/s]
 23%|█████████████████▏                                                       | 17001/72397 [26:24<21:13, 43.51it/s]
 24%|█████████████████▏                                                       | 17101/72397 [26:27<24:16, 37.97it/s]
 24%|█████████████████▎                                                       | 17201/72397 [26:39<48:01, 19.15it/s]
 24%|█████████████████▍                                                       | 17301/72397 [26:46<53:35, 17.13it/s]
 24%|█████████████████▌                                                       | 17401/72397 [26:47<40:27, 22.66it/s]
 24%|█████████████████▋                                                       | 17501/72397 [26:49<33:00, 27.72it/s]
 24%|█████████████████▋                                                       | 17601/72397 [26:51<27:37, 33.06it/s]
 24%|█████████████████▊                                                       | 17701/72397 [26:51<20:32, 44.39it/s]
 25%|█████████████████▉                                                       | 17801/72397 [26:52<15:29, 58.75it/s]
 25%|██████████████████                                                       | 17901/72397 [26:54<17:13, 52.75it/s]
 25%|██████████████████                                                       | 17901/72397 [27:05<17:13, 52.75it/s]
 25%|██████████████████▏                                                      | 18001/72397 [27:07<48:29, 18.69it/s]
 25%|█████████████████▊                                                     | 18101/72397 [27:20<1:08:32, 13.20it/s]
 25%|██████████████████▎                                                      | 18201/72397 [27:21<50:17, 17.96it/s]
 25%|██████████████████▍                                                      | 18301/72397 [27:22<38:35, 23.37it/s]
 25%|██████████████████▌                                                      | 18401/72397 [27:23<29:29, 30.52it/s]
 26%|██████████████████▋                                                      | 18501/72397 [27:27<29:34, 30.38it/s]
 26%|██████████████████▊                                                      | 18601/72397 [27:27<22:53, 39.16it/s]
 26%|██████████████████▊                                                      | 18701/72397 [27:29<19:32, 45.81it/s]
 26%|██████████████████▊                                                      | 18701/72397 [27:45<19:32, 45.81it/s]
 26%|██████████████████▍                                                    | 18801/72397 [27:48<1:04:13, 13.91it/s]
 26%|███████████████████                                                      | 18901/72397 [27:49<49:20, 18.07it/s]
 26%|███████████████████▏                                                     | 19001/72397 [27:51<38:08, 23.33it/s]
 26%|███████████████████▎                                                     | 19101/72397 [27:51<27:58, 31.75it/s]
 27%|███████████████████▎                                                     | 19201/72397 [27:53<23:46, 37.28it/s]
 27%|███████████████████▍                                                     | 19301/72397 [27:55<22:31, 39.30it/s]
 27%|███████████████████▌                                                     | 19401/72397 [27:56<18:01, 48.99it/s]
 27%|███████████████████▋                                                     | 19501/72397 [27:58<17:38, 49.97it/s]
 27%|███████████████████▋                                                     | 19501/72397 [28:15<17:38, 49.97it/s]
 27%|███████████████████▏                                                   | 19601/72397 [28:16<1:01:55, 14.21it/s]
 27%|███████████████████▊                                                     | 19701/72397 [28:17<45:53, 19.14it/s]
 27%|███████████████████▉                                                     | 19801/72397 [28:19<35:58, 24.36it/s]
 27%|████████████████████                                                     | 19901/72397 [28:20<28:28, 30.73it/s]
 28%|████████████████████▏                                                    | 20001/72397 [28:31<48:20, 18.06it/s]
 28%|████████████████████▎                                                    | 20101/72397 [28:34<41:06, 21.21it/s]
 28%|████████████████████▎                                                    | 20201/72397 [28:36<33:08, 26.25it/s]
 28%|████████████████████▍                                                    | 20301/72397 [28:38<30:08, 28.80it/s]
 28%|████████████████████▌                                                    | 20401/72397 [28:53<58:12, 14.89it/s]
 28%|████████████████████▋                                                    | 20501/72397 [28:57<51:21, 16.84it/s]
 29%|████████████████████▊                                                    | 20701/72397 [28:59<32:50, 26.24it/s]
 29%|████████████████████▉                                                    | 20801/72397 [29:02<29:33, 29.09it/s]
 29%|█████████████████████                                                    | 20901/72397 [29:02<22:45, 37.73it/s]
 29%|█████████████████████▏                                                   | 21001/72397 [29:03<19:33, 43.79it/s]
 29%|█████████████████████▎                                                   | 21101/72397 [29:06<21:07, 40.48it/s]
 29%|█████████████████████▍                                                   | 21201/72397 [29:20<48:40, 17.53it/s]
 29%|█████████████████████▍                                                   | 21301/72397 [29:24<45:14, 18.82it/s]
 30%|█████████████████████▌                                                   | 21401/72397 [29:25<33:13, 25.58it/s]
 30%|█████████████████████▋                                                   | 21501/72397 [29:27<28:37, 29.63it/s]
 30%|█████████████████████▊                                                   | 21601/72397 [29:30<27:04, 31.26it/s]
 30%|█████████████████████▉                                                   | 21801/72397 [29:40<34:07, 24.71it/s]
 30%|██████████████████████                                                   | 21901/72397 [29:47<40:33, 20.75it/s]
 30%|██████████████████████▏                                                  | 22001/72397 [29:59<56:36, 14.84it/s]
 31%|██████████████████████▎                                                  | 22101/72397 [30:05<54:40, 15.33it/s]
 31%|██████████████████████▍                                                  | 22201/72397 [30:06<40:57, 20.43it/s]
 31%|██████████████████████▍                                                  | 22301/72397 [30:07<32:07, 25.99it/s]
 31%|██████████████████████▌                                                  | 22401/72397 [30:09<26:19, 31.66it/s]
 31%|██████████████████████▋                                                  | 22501/72397 [30:09<19:17, 43.09it/s]
 31%|██████████████████████▊                                                  | 22601/72397 [30:11<19:40, 42.19it/s]
 31%|██████████████████████▉                                                  | 22701/72397 [30:16<24:47, 33.40it/s]
 31%|██████████████████████▉                                                  | 22801/72397 [30:28<46:32, 17.76it/s]
 32%|███████████████████████                                                  | 22901/72397 [30:34<46:51, 17.60it/s]
 32%|███████████████████████▏                                                 | 23001/72397 [30:35<35:45, 23.02it/s]
 32%|███████████████████████▎                                                 | 23101/72397 [30:36<27:35, 29.78it/s]
 32%|███████████████████████▍                                                 | 23201/72397 [30:37<23:02, 35.58it/s]
 32%|███████████████████████▍                                                 | 23301/72397 [30:38<16:40, 49.07it/s]
 32%|███████████████████████▌                                                 | 23401/72397 [30:40<18:40, 43.74it/s]
 32%|███████████████████████▋                                                 | 23501/72397 [30:44<22:11, 36.71it/s]
 32%|███████████████████████▋                                                 | 23501/72397 [30:55<22:11, 36.71it/s]
 33%|███████████████████████▊                                                 | 23601/72397 [31:02<59:53, 13.58it/s]
 33%|███████████████████████▉                                                 | 23701/72397 [31:09<57:40, 14.07it/s]
 33%|███████████████████████▉                                                 | 23801/72397 [31:10<42:57, 18.85it/s]
 33%|████████████████████████                                                 | 23901/72397 [31:13<36:55, 21.89it/s]
 33%|████████████████████████▏                                                | 24001/72397 [31:18<38:49, 20.78it/s]
 33%|████████████████████████▎                                                | 24101/72397 [31:21<33:03, 24.35it/s]
 34%|████████████████████████▌                                                | 24301/72397 [31:21<18:02, 44.42it/s]
 34%|████████████████████████▌                                                | 24401/72397 [31:32<36:06, 22.16it/s]
 34%|████████████████████████▋                                                | 24501/72397 [31:37<36:41, 21.76it/s]
 34%|████████████████████████▊                                                | 24601/72397 [31:39<29:55, 26.62it/s]
 34%|████████████████████████▉                                                | 24701/72397 [31:41<26:54, 29.54it/s]
 34%|█████████████████████████                                                | 24801/72397 [31:47<32:42, 24.25it/s]
 34%|█████████████████████████                                                | 24901/72397 [31:49<28:04, 28.20it/s]
 35%|█████████████████████████▏                                               | 25001/72397 [31:49<20:03, 39.37it/s]
 35%|█████████████████████████▎                                               | 25101/72397 [31:52<20:33, 38.35it/s]
 35%|█████████████████████████▎                                               | 25101/72397 [32:05<20:33, 38.35it/s]
 35%|█████████████████████████▍                                               | 25201/72397 [32:08<51:50, 15.17it/s]
 35%|█████████████████████████▌                                               | 25301/72397 [32:09<38:08, 20.58it/s]
 35%|█████████████████████████▌                                               | 25401/72397 [32:09<27:33, 28.43it/s]
 35%|█████████████████████████▋                                               | 25501/72397 [32:16<34:37, 22.57it/s]
 35%|█████████████████████████▊                                               | 25601/72397 [32:17<26:11, 29.79it/s]
 36%|█████████████████████████▉                                               | 25701/72397 [32:18<20:36, 37.76it/s]
 36%|██████████████████████████                                               | 25801/72397 [32:19<17:12, 45.13it/s]
 36%|██████████████████████████                                               | 25901/72397 [32:20<15:37, 49.58it/s]
 36%|██████████████████████████                                               | 25901/72397 [32:35<15:37, 49.58it/s]
 36%|██████████████████████████▏                                              | 26001/72397 [32:36<48:11, 16.04it/s]
 36%|██████████████████████████▎                                              | 26101/72397 [32:37<36:13, 21.30it/s]
 36%|██████████████████████████▍                                              | 26201/72397 [32:41<34:00, 22.64it/s]
 36%|██████████████████████████▌                                              | 26301/72397 [32:43<28:39, 26.80it/s]
 36%|██████████████████████████▌                                              | 26401/72397 [32:46<25:54, 29.58it/s]
 37%|██████████████████████████▋                                              | 26501/72397 [32:47<19:38, 38.93it/s]
 37%|██████████████████████████▉                                              | 26701/72397 [32:48<13:08, 57.96it/s]
 37%|██████████████████████████▉                                              | 26701/72397 [33:05<13:08, 57.96it/s]
 37%|███████████████████████████                                              | 26801/72397 [33:06<42:51, 17.73it/s]
 37%|███████████████████████████▏                                             | 26901/72397 [33:12<43:35, 17.40it/s]
 37%|███████████████████████████▏                                             | 27001/72397 [33:12<33:00, 22.93it/s]
 37%|███████████████████████████▎                                             | 27101/72397 [33:14<26:14, 28.77it/s]
 38%|███████████████████████████▍                                             | 27201/72397 [33:14<19:44, 38.16it/s]
 38%|███████████████████████████▌                                             | 27301/72397 [33:14<14:27, 51.96it/s]
 38%|███████████████████████████▋                                             | 27401/72397 [33:16<14:45, 50.81it/s]
 38%|███████████████████████████▋                                             | 27501/72397 [33:18<14:30, 51.60it/s]
 38%|███████████████████████████▋                                             | 27501/72397 [33:35<14:30, 51.60it/s]
 38%|███████████████████████████▊                                             | 27601/72397 [33:35<48:32, 15.38it/s]
 38%|███████████████████████████▉                                             | 27701/72397 [33:40<44:46, 16.64it/s]
 38%|████████████████████████████                                             | 27801/72397 [33:47<46:49, 15.87it/s]
 39%|████████████████████████████▏                                            | 27901/72397 [33:48<34:13, 21.67it/s]
 39%|████████████████████████████▏                                            | 28001/72397 [33:49<25:23, 29.15it/s]
 39%|████████████████████████████▎                                            | 28101/72397 [33:51<23:30, 31.40it/s]
 39%|████████████████████████████▍                                            | 28201/72397 [33:52<18:26, 39.95it/s]
 39%|████████████████████████████▌                                            | 28301/72397 [33:56<20:29, 35.87it/s]
 39%|████████████████████████████▋                                            | 28401/72397 [34:10<45:13, 16.21it/s]
 39%|████████████████████████████▋                                            | 28501/72397 [34:10<33:15, 22.00it/s]
 40%|████████████████████████████▊                                            | 28601/72397 [34:16<35:17, 20.68it/s]
 40%|█████████████████████████████                                            | 28801/72397 [34:27<38:02, 19.10it/s]
 40%|█████████████████████████████▏                                           | 28901/72397 [34:34<41:12, 17.59it/s]
 40%|█████████████████████████████▏                                           | 29001/72397 [34:37<34:22, 21.04it/s]
 40%|█████████████████████████████▎                                           | 29101/72397 [34:47<45:57, 15.70it/s]
 40%|█████████████████████████████▍                                           | 29201/72397 [34:49<37:25, 19.24it/s]
 40%|█████████████████████████████▌                                           | 29301/72397 [34:50<28:37, 25.09it/s]
 41%|█████████████████████████████▋                                           | 29401/72397 [34:56<32:27, 22.08it/s]
 41%|█████████████████████████████▋                                           | 29501/72397 [34:57<24:21, 29.36it/s]
 41%|█████████████████████████████▊                                           | 29601/72397 [35:06<36:12, 19.70it/s]
 41%|█████████████████████████████▉                                           | 29701/72397 [35:08<28:40, 24.81it/s]
 41%|██████████████████████████████                                           | 29801/72397 [35:09<23:03, 30.78it/s]
 41%|██████████████████████████████▏                                          | 29901/72397 [35:16<31:27, 22.51it/s]
 41%|██████████████████████████████▎                                          | 30001/72397 [35:18<25:18, 27.93it/s]
 42%|██████████████████████████████▎                                          | 30101/72397 [35:22<26:49, 26.28it/s]
 42%|██████████████████████████████▎                                          | 30101/72397 [35:35<26:49, 26.28it/s]
 42%|██████████████████████████████▍                                          | 30201/72397 [35:35<46:31, 15.11it/s]
 42%|██████████████████████████████▌                                          | 30301/72397 [35:37<36:28, 19.24it/s]
 42%|██████████████████████████████▋                                          | 30401/72397 [35:46<44:32, 15.71it/s]
 42%|██████████████████████████████▊                                          | 30501/72397 [35:51<40:48, 17.11it/s]
 42%|██████████████████████████████▊                                          | 30601/72397 [36:03<53:08, 13.11it/s]
 42%|██████████████████████████████▉                                          | 30701/72397 [36:04<40:24, 17.20it/s]
 43%|███████████████████████████████                                          | 30801/72397 [36:05<29:30, 23.50it/s]
 43%|███████████████████████████████▏                                         | 30901/72397 [36:14<39:52, 17.35it/s]
 43%|███████████████████████████████▎                                         | 31001/72397 [36:15<29:10, 23.64it/s]
 43%|███████████████████████████████▎                                         | 31101/72397 [36:18<26:38, 25.83it/s]
 43%|███████████████████████████████▍                                         | 31201/72397 [36:27<37:57, 18.09it/s]
 43%|███████████████████████████████▌                                         | 31301/72397 [36:32<35:33, 19.27it/s]
 43%|███████████████████████████████▋                                         | 31401/72397 [36:35<30:56, 22.08it/s]
 44%|███████████████████████████████▊                                         | 31501/72397 [36:43<39:39, 17.19it/s]
 44%|███████████████████████████████▉                                         | 31701/72397 [36:44<22:24, 30.26it/s]
 44%|████████████████████████████████                                         | 31801/72397 [36:48<23:32, 28.74it/s]
 44%|████████████████████████████████▏                                        | 31901/72397 [37:04<46:04, 14.65it/s]
 44%|████████████████████████████████▎                                        | 32001/72397 [37:07<37:51, 17.78it/s]
 44%|████████████████████████████████▎                                        | 32101/72397 [37:11<35:43, 18.80it/s]
 44%|████████████████████████████████▍                                        | 32201/72397 [37:19<39:19, 17.03it/s]
 45%|████████████████████████████████▌                                        | 32301/72397 [37:27<44:31, 15.01it/s]
 45%|████████████████████████████████▋                                        | 32401/72397 [37:35<45:57, 14.50it/s]
 45%|████████████████████████████████▋                                        | 32401/72397 [37:45<45:57, 14.50it/s]
 45%|███████████████████████████████▊                                       | 32501/72397 [37:51<1:04:03, 10.38it/s]
 45%|████████████████████████████████▊                                        | 32601/72397 [37:54<50:57, 13.02it/s]
 45%|████████████████████████████████▉                                        | 32701/72397 [37:55<37:23, 17.70it/s]
 45%|█████████████████████████████████                                        | 32801/72397 [37:55<27:15, 24.21it/s]
 45%|█████████████████████████████████▏                                       | 32901/72397 [38:01<29:21, 22.42it/s]
 46%|█████████████████████████████████▎                                       | 33001/72397 [38:04<27:14, 24.11it/s]
 46%|█████████████████████████████████▍                                       | 33101/72397 [38:15<40:04, 16.34it/s]
 46%|█████████████████████████████████▍                                       | 33201/72397 [38:16<29:47, 21.93it/s]
 46%|█████████████████████████████████▌                                       | 33301/72397 [38:24<37:26, 17.40it/s]
 46%|█████████████████████████████████▊                                       | 33501/72397 [38:30<28:40, 22.61it/s]
 46%|█████████████████████████████████▉                                       | 33601/72397 [38:30<22:07, 29.21it/s]
 47%|█████████████████████████████████▉                                       | 33701/72397 [38:42<35:45, 18.03it/s]
 47%|██████████████████████████████████                                       | 33801/72397 [38:57<51:41, 12.44it/s]
 47%|██████████████████████████████████▏                                      | 33901/72397 [38:58<39:50, 16.11it/s]
 47%|██████████████████████████████████▎                                      | 34001/72397 [39:03<36:31, 17.52it/s]
 47%|██████████████████████████████████▍                                      | 34101/72397 [39:12<43:03, 14.83it/s]
 47%|██████████████████████████████████▍                                      | 34201/72397 [39:13<31:47, 20.03it/s]
 47%|██████████████████████████████████▍                                      | 34201/72397 [39:25<31:47, 20.03it/s]
 47%|█████████████████████████████████▋                                     | 34301/72397 [39:38<1:09:35,  9.12it/s]
 48%|█████████████████████████████████▋                                     | 34401/72397 [39:51<1:13:46,  8.58it/s]
 48%|██████████████████████████████████▊                                      | 34501/72397 [39:53<54:28, 11.59it/s]
 48%|██████████████████████████████████▉                                      | 34701/72397 [39:54<31:18, 20.07it/s]
 48%|███████████████████████████████████                                      | 34801/72397 [39:59<31:19, 20.00it/s]
 48%|███████████████████████████████████▏                                     | 34901/72397 [40:00<25:00, 24.99it/s]
 48%|███████████████████████████████████▏                                     | 34901/72397 [40:15<25:00, 24.99it/s]
 48%|███████████████████████████████████▎                                     | 35001/72397 [40:16<44:42, 13.94it/s]
 48%|███████████████████████████████████▍                                     | 35101/72397 [40:21<40:32, 15.33it/s]
 49%|███████████████████████████████████▍                                     | 35201/72397 [40:24<34:22, 18.04it/s]
 49%|███████████████████████████████████▌                                     | 35301/72397 [40:29<33:28, 18.47it/s]
 49%|███████████████████████████████████▋                                     | 35401/72397 [40:30<25:55, 23.78it/s]
 49%|███████████████████████████████████▋                                     | 35401/72397 [40:45<25:55, 23.78it/s]
 49%|███████████████████████████████████▊                                     | 35501/72397 [40:50<54:34, 11.27it/s]
 49%|███████████████████████████████████▉                                     | 35601/72397 [40:58<52:11, 11.75it/s]
 49%|███████████████████████████████████▉                                     | 35701/72397 [40:58<37:24, 16.35it/s]
 49%|████████████████████████████████████                                     | 35801/72397 [41:07<42:14, 14.44it/s]
 50%|████████████████████████████████████▏                                    | 35901/72397 [41:10<35:03, 17.35it/s]
 50%|████████████████████████████████████▏                                    | 35901/72397 [41:25<35:03, 17.35it/s]
 50%|███████████████████████████████████▎                                   | 36001/72397 [41:33<1:05:32,  9.26it/s]
 50%|███████████████████████████████████▍                                   | 36101/72397 [41:42<1:01:43,  9.80it/s]
 50%|███████████████████████████████████▍                                   | 36101/72397 [41:55<1:01:43,  9.80it/s]
 50%|███████████████████████████████████▌                                   | 36201/72397 [41:56<1:09:09,  8.72it/s]
 50%|████████████████████████████████████▌                                    | 36301/72397 [42:00<55:59, 10.74it/s]
 50%|████████████████████████████████████▋                                    | 36401/72397 [42:02<41:54, 14.31it/s]
 50%|████████████████████████████████████▊                                    | 36501/72397 [42:13<49:45, 12.02it/s]
 51%|████████████████████████████████████▉                                    | 36601/72397 [42:17<41:09, 14.50it/s]
 51%|█████████████████████████████████████                                    | 36701/72397 [42:21<35:36, 16.71it/s]
 51%|█████████████████████████████████████                                    | 36801/72397 [42:25<32:39, 18.17it/s]
 51%|█████████████████████████████████████▏                                   | 36901/72397 [42:34<38:41, 15.29it/s]
 51%|█████████████████████████████████████▎                                   | 37001/72397 [42:35<29:29, 20.01it/s]
 51%|█████████████████████████████████████▍                                   | 37101/72397 [42:43<33:10, 17.73it/s]
 51%|█████████████████████████████████████▌                                   | 37201/72397 [42:45<26:36, 22.05it/s]
 51%|█████████████████████████████████████▌                                   | 37201/72397 [42:55<26:36, 22.05it/s]
 52%|████████████████████████████████████▌                                  | 37301/72397 [43:09<1:01:53,  9.45it/s]
 52%|█████████████████████████████████████▋                                   | 37401/72397 [43:17<56:39, 10.29it/s]
 52%|█████████████████████████████████████▊                                   | 37501/72397 [43:26<55:57, 10.39it/s]
 52%|█████████████████████████████████████▉                                   | 37601/72397 [43:28<41:28, 13.98it/s]
 52%|██████████████████████████████████████                                   | 37701/72397 [43:32<36:09, 15.99it/s]
 52%|██████████████████████████████████████                                   | 37701/72397 [43:45<36:09, 15.99it/s]
 52%|█████████████████████████████████████                                  | 37801/72397 [44:05<1:22:32,  6.98it/s]
 52%|█████████████████████████████████████▏                                 | 37901/72397 [44:08<1:02:25,  9.21it/s]
 52%|██████████████████████████████████████▎                                  | 38001/72397 [44:11<48:35, 11.80it/s]
 53%|██████████████████████████████████████▍                                  | 38101/72397 [44:15<41:53, 13.64it/s]
 53%|██████████████████████████████████████▌                                  | 38201/72397 [44:21<38:13, 14.91it/s]
 53%|██████████████████████████████████████▌                                  | 38301/72397 [44:22<28:59, 19.60it/s]
 53%|██████████████████████████████████████▋                                  | 38401/72397 [44:24<24:28, 23.16it/s]
 53%|██████████████████████████████████████▊                                  | 38501/72397 [44:29<24:34, 22.99it/s]
 53%|██████████████████████████████████████▊                                  | 38501/72397 [44:45<24:34, 22.99it/s]
 53%|█████████████████████████████████████▊                                 | 38601/72397 [44:56<1:03:02,  8.93it/s]
 53%|█████████████████████████████████████▉                                 | 38701/72397 [45:13<1:11:42,  7.83it/s]
 54%|███████████████████████████████████████                                  | 38801/72397 [45:15<54:43, 10.23it/s]
 54%|███████████████████████████████████████▏                                 | 38901/72397 [45:24<52:06, 10.72it/s]
 54%|███████████████████████████████████████▎                                 | 39001/72397 [45:34<54:06, 10.29it/s]
 54%|███████████████████████████████████████▍                                 | 39101/72397 [45:39<44:54, 12.36it/s]
 54%|███████████████████████████████████████▌                                 | 39201/72397 [45:50<50:11, 11.02it/s]
 54%|███████████████████████████████████████▋                                 | 39301/72397 [45:55<43:36, 12.65it/s]
 54%|███████████████████████████████████████▋                                 | 39401/72397 [45:57<34:27, 15.96it/s]
 55%|███████████████████████████████████████▊                                 | 39501/72397 [46:06<37:14, 14.72it/s]
 55%|███████████████████████████████████████▉                                 | 39601/72397 [46:14<39:17, 13.91it/s]
 55%|████████████████████████████████████████                                 | 39701/72397 [46:17<33:33, 16.24it/s]
 55%|████████████████████████████████████████                                 | 39701/72397 [46:35<33:33, 16.24it/s]
 55%|████████████████████████████████████████▏                                | 39801/72397 [46:38<56:50,  9.56it/s]
 55%|████████████████████████████████████████▏                                | 39901/72397 [46:44<49:06, 11.03it/s]
 55%|████████████████████████████████████████▏                                | 39901/72397 [46:55<49:06, 11.03it/s]
 55%|████████████████████████████████████████▎                                | 40001/72397 [46:56<53:29, 10.09it/s]
 55%|████████████████████████████████████████▍                                | 40101/72397 [47:00<43:56, 12.25it/s]
 56%|████████████████████████████████████████▌                                | 40201/72397 [47:03<35:44, 15.01it/s]
 56%|████████████████████████████████████████▋                                | 40301/72397 [47:11<37:21, 14.32it/s]
 56%|████████████████████████████████████████▋                                | 40401/72397 [47:11<26:35, 20.06it/s]
 56%|████████████████████████████████████████▋                                | 40401/72397 [47:25<26:35, 20.06it/s]
 56%|████████████████████████████████████████▊                                | 40501/72397 [47:32<52:20, 10.16it/s]
 56%|███████████████████████████████████████▊                               | 40601/72397 [47:48<1:02:37,  8.46it/s]
 56%|█████████████████████████████████████████                                | 40701/72397 [47:53<51:13, 10.31it/s]
 56%|█████████████████████████████████████████▏                               | 40801/72397 [48:03<51:49, 10.16it/s]
 56%|█████████████████████████████████████████▏                               | 40901/72397 [48:17<57:13,  9.17it/s]
 57%|█████████████████████████████████████████▎                               | 41001/72397 [48:18<41:45, 12.53it/s]
 57%|█████████████████████████████████████████▍                               | 41101/72397 [48:22<35:37, 14.64it/s]
 57%|█████████████████████████████████████████▌                               | 41201/72397 [48:28<33:51, 15.36it/s]
 57%|█████████████████████████████████████████▋                               | 41301/72397 [48:29<26:08, 19.82it/s]
 57%|█████████████████████████████████████████▋                               | 41301/72397 [48:45<26:08, 19.82it/s]
 57%|█████████████████████████████████████████▋                               | 41401/72397 [48:49<47:54, 10.78it/s]
 57%|█████████████████████████████████████████▊                               | 41501/72397 [48:53<40:00, 12.87it/s]
 57%|█████████████████████████████████████████▉                               | 41601/72397 [48:58<35:42, 14.38it/s]
 58%|██████████████████████████████████████████                               | 41701/72397 [48:59<27:16, 18.76it/s]
 58%|██████████████████████████████████████████▏                              | 41901/72397 [49:13<30:04, 16.90it/s]
 58%|██████████████████████████████████████████▎                              | 42001/72397 [49:16<26:36, 19.03it/s]
 58%|██████████████████████████████████████████▍                              | 42101/72397 [49:20<24:27, 20.64it/s]
 58%|██████████████████████████████████████████▌                              | 42201/72397 [49:23<22:43, 22.15it/s]
 58%|██████████████████████████████████████████▋                              | 42301/72397 [49:29<23:45, 21.11it/s]
 59%|██████████████████████████████████████████▊                              | 42401/72397 [49:31<20:00, 24.98it/s]
 59%|██████████████████████████████████████████▊                              | 42501/72397 [49:32<16:21, 30.45it/s]
 59%|██████████████████████████████████████████▉                              | 42601/72397 [49:34<13:35, 36.54it/s]
 59%|███████████████████████████████████████████                              | 42701/72397 [49:43<23:02, 21.48it/s]
 59%|███████████████████████████████████████████▏                             | 42801/72397 [49:51<27:36, 17.86it/s]
 59%|███████████████████████████████████████████▎                             | 42901/72397 [49:58<29:21, 16.75it/s]
 59%|███████████████████████████████████████████▎                             | 43001/72397 [50:00<23:38, 20.72it/s]
 60%|███████████████████████████████████████████▍                             | 43101/72397 [50:00<16:46, 29.10it/s]
 60%|███████████████████████████████████████████▌                             | 43201/72397 [50:02<15:01, 32.39it/s]
 60%|███████████████████████████████████████████▋                             | 43301/72397 [50:02<10:43, 45.23it/s]
 60%|███████████████████████████████████████████▊                             | 43401/72397 [50:08<15:55, 30.34it/s]
 60%|███████████████████████████████████████████▊                             | 43501/72397 [50:20<27:51, 17.29it/s]
 60%|███████████████████████████████████████████▉                             | 43601/72397 [50:22<22:45, 21.09it/s]
 60%|███████████████████████████████████████████▉                             | 43601/72397 [50:35<22:45, 21.09it/s]
 60%|██████████████████████████████████████████▊                            | 43701/72397 [51:05<1:17:06,  6.20it/s]
 61%|████████████████████████████████████████████▏                            | 43801/72397 [51:06<55:42,  8.56it/s]
 61%|████████████████████████████████████████████▎                            | 43901/72397 [51:16<52:20,  9.07it/s]
 61%|████████████████████████████████████████████▎                            | 44001/72397 [51:18<39:15, 12.05it/s]
 61%|████████████████████████████████████████████▍                            | 44101/72397 [51:22<34:00, 13.87it/s]
 61%|████████████████████████████████████████████▌                            | 44201/72397 [51:35<41:24, 11.35it/s]
 61%|████████████████████████████████████████████▋                            | 44301/72397 [51:36<30:00, 15.61it/s]
 61%|████████████████████████████████████████████▊                            | 44401/72397 [51:37<23:39, 19.73it/s]
 61%|████████████████████████████████████████████▊                            | 44401/72397 [51:55<23:39, 19.73it/s]
 61%|███████████████████████████████████████████▋                           | 44501/72397 [52:22<1:18:43,  5.91it/s]
 62%|████████████████████████████████████████████▉                            | 44601/72397 [52:25<58:35,  7.91it/s]
 62%|█████████████████████████████████████████████                            | 44701/72397 [52:26<42:19, 10.91it/s]
 62%|█████████████████████████████████████████████▏                           | 44801/72397 [52:41<50:50,  9.05it/s]
 62%|█████████████████████████████████████████████▎                           | 44901/72397 [52:46<41:40, 10.99it/s]
 62%|█████████████████████████████████████████████▍                           | 45001/72397 [52:57<44:24, 10.28it/s]
 62%|█████████████████████████████████████████████▍                           | 45101/72397 [53:00<35:13, 12.92it/s]
 62%|█████████████████████████████████████████████▌                           | 45201/72397 [53:12<41:08, 11.02it/s]
 63%|████████████████████████████████████████████▍                          | 45301/72397 [53:56<1:27:37,  5.15it/s]
 63%|████████████████████████████████████████████▌                          | 45401/72397 [54:03<1:11:12,  6.32it/s]
 63%|████████████████████████████████████████████▌                          | 45401/72397 [54:15<1:11:12,  6.32it/s]
 63%|█████████████████████████████████████████████▉                           | 45601/72397 [54:18<52:48,  8.46it/s]
 63%|██████████████████████████████████████████████                           | 45701/72397 [54:20<41:58, 10.60it/s]
 63%|██████████████████████████████████████████████▏                          | 45801/72397 [54:33<46:32,  9.53it/s]
 63%|██████████████████████████████████████████████▎                          | 45901/72397 [54:40<41:45, 10.57it/s]
 64%|██████████████████████████████████████████████▍                          | 46001/72397 [54:41<31:36, 13.92it/s]
 64%|██████████████████████████████████████████████▍                          | 46001/72397 [54:55<31:36, 13.92it/s]
 64%|█████████████████████████████████████████████▏                         | 46101/72397 [55:32<1:26:34,  5.06it/s]
 64%|█████████████████████████████████████████████▎                         | 46201/72397 [55:34<1:03:09,  6.91it/s]
 64%|██████████████████████████████████████████████▋                          | 46301/72397 [55:40<51:54,  8.38it/s]
 64%|██████████████████████████████████████████████▋                          | 46301/72397 [55:55<51:54,  8.38it/s]
 64%|█████████████████████████████████████████████▌                         | 46401/72397 [55:59<1:01:36,  7.03it/s]
 64%|██████████████████████████████████████████████▉                          | 46501/72397 [56:01<45:09,  9.56it/s]
 64%|██████████████████████████████████████████████▉                          | 46601/72397 [56:08<40:17, 10.67it/s]
 65%|███████████████████████████████████████████████                          | 46701/72397 [56:10<30:31, 14.03it/s]
 65%|███████████████████████████████████████████████▏                         | 46801/72397 [56:13<25:44, 16.57it/s]
 65%|███████████████████████████████████████████████▏                         | 46801/72397 [56:25<25:44, 16.57it/s]
 65%|█████████████████████████████████████████████▉                         | 46901/72397 [56:53<1:08:41,  6.19it/s]
 65%|███████████████████████████████████████████████▍                         | 47001/72397 [57:00<57:21,  7.38it/s]
 65%|███████████████████████████████████████████████▍                         | 47001/72397 [57:15<57:21,  7.38it/s]
 65%|██████████████████████████████████████████████▏                        | 47101/72397 [57:38<1:27:05,  4.84it/s]
 65%|██████████████████████████████████████████████▎                        | 47201/72397 [57:43<1:07:38,  6.21it/s]
 65%|██████████████████████████████████████████████▎                        | 47201/72397 [57:55<1:07:38,  6.21it/s]
 65%|███████████████████████████████████████████████▊                         | 47401/72397 [58:06<57:36,  7.23it/s]
 66%|███████████████████████████████████████████████▉                         | 47501/72397 [58:20<57:32,  7.21it/s]
 66%|███████████████████████████████████████████████▉                         | 47601/72397 [58:21<44:22,  9.31it/s]
 66%|████████████████████████████████████████████████                         | 47701/72397 [58:24<34:45, 11.84it/s]
 66%|████████████████████████████████████████████████▏                        | 47801/72397 [58:29<31:32, 13.00it/s]
 66%|████████████████████████████████████████████████▏                        | 47801/72397 [58:45<31:32, 13.00it/s]
 66%|██████████████████████████████████████████████▉                        | 47901/72397 [59:13<1:13:21,  5.57it/s]
 66%|███████████████████████████████████████████████                        | 48001/72397 [59:38<1:21:37,  4.98it/s]
 66%|████████████████████████████████████████████████▌                        | 48101/72397 [59:40<59:55,  6.76it/s]
 67%|████████████████████████████████████████████████▌                        | 48201/72397 [59:43<45:05,  8.94it/s]
 67%|████████████████████████████████████████████████▌                        | 48201/72397 [59:55<45:05,  8.94it/s]
 67%|███████████████████████████████████████████████▎                       | 48301/72397 [1:00:04<57:03,  7.04it/s]
 67%|███████████████████████████████████████████████▌                       | 48501/72397 [1:00:07<33:09, 12.01it/s]
 67%|███████████████████████████████████████████████▋                       | 48601/72397 [1:00:08<25:36, 15.49it/s]
 67%|███████████████████████████████████████████████▋                       | 48601/72397 [1:00:25<25:36, 15.49it/s]
 67%|███████████████████████████████████████████████▊                       | 48701/72397 [1:00:34<45:33,  8.67it/s]
 67%|██████████████████████████████████████████████▌                      | 48801/72397 [1:01:21<1:23:06,  4.73it/s]
 68%|██████████████████████████████████████████████▌                      | 48901/72397 [1:01:26<1:05:12,  6.01it/s]
 68%|██████████████████████████████████████████████▌                      | 48901/72397 [1:01:45<1:05:12,  6.01it/s]
 68%|██████████████████████████████████████████████▋                      | 49001/72397 [1:01:49<1:12:00,  5.41it/s]
 68%|██████████████████████████████████████████████▊                      | 49101/72397 [1:02:03<1:06:41,  5.82it/s]
 68%|████████████████████████████████████████████████▎                      | 49201/72397 [1:02:04<47:58,  8.06it/s]
 68%|████████████████████████████████████████████████▎                      | 49201/72397 [1:02:15<47:58,  8.06it/s]
 68%|████████████████████████████████████████████████▎                      | 49301/72397 [1:02:27<59:49,  6.43it/s]
 68%|████████████████████████████████████████████████▍                      | 49401/72397 [1:02:34<50:39,  7.57it/s]
 68%|████████████████████████████████████████████████▍                      | 49401/72397 [1:02:45<50:39,  7.57it/s]
 68%|███████████████████████████████████████████████▏                     | 49501/72397 [1:03:04<1:09:30,  5.49it/s]
 69%|████████████████████████████████████████████████▋                      | 49601/72397 [1:03:12<56:38,  6.71it/s]
 69%|████████████████████████████████████████████████▋                      | 49701/72397 [1:03:14<42:12,  8.96it/s]
 69%|████████████████████████████████████████████████▋                      | 49701/72397 [1:03:25<42:12,  8.96it/s]
 69%|███████████████████████████████████████████████▍                     | 49801/72397 [1:03:57<1:17:57,  4.83it/s]
 69%|████████████████████████████████████████████████▉                      | 49901/72397 [1:04:00<57:29,  6.52it/s]
 69%|████████████████████████████████████████████████▉                      | 49901/72397 [1:04:15<57:29,  6.52it/s]
 69%|███████████████████████████████████████████████▋                     | 50001/72397 [1:04:24<1:07:09,  5.56it/s]
 69%|█████████████████████████████████████████████████▏                     | 50101/72397 [1:04:27<49:53,  7.45it/s]
 69%|█████████████████████████████████████████████████▏                     | 50201/72397 [1:04:30<37:56,  9.75it/s]
 69%|█████████████████████████████████████████████████▎                     | 50301/72397 [1:04:31<28:24, 12.96it/s]
 70%|█████████████████████████████████████████████████▍                     | 50401/72397 [1:04:40<28:53, 12.69it/s]
 70%|█████████████████████████████████████████████████▌                     | 50501/72397 [1:04:52<33:37, 10.85it/s]
 70%|████████████████████████████████████████████████▏                    | 50601/72397 [1:05:42<1:18:06,  4.65it/s]
 70%|████████████████████████████████████████████████▎                    | 50701/72397 [1:05:49<1:01:19,  5.90it/s]
 70%|████████████████████████████████████████████████▎                    | 50701/72397 [1:06:05<1:01:19,  5.90it/s]
 70%|████████████████████████████████████████████████▍                    | 50801/72397 [1:06:17<1:13:14,  4.91it/s]
 70%|████████████████████████████████████████████████▌                    | 50901/72397 [1:06:35<1:10:09,  5.11it/s]
 70%|████████████████████████████████████████████████▌                    | 51001/72397 [1:06:49<1:03:54,  5.58it/s]
 71%|██████████████████████████████████████████████████                     | 51101/72397 [1:07:00<57:09,  6.21it/s]
 71%|████████████████████████████████████████████████▊                    | 51201/72397 [1:07:24<1:05:01,  5.43it/s]
 71%|██████████████████████████████████████████████████▎                    | 51301/72397 [1:07:33<54:55,  6.40it/s]
 71%|██████████████████████████████████████████████████▎                    | 51301/72397 [1:07:45<54:55,  6.40it/s]
 71%|████████████████████████████████████████████████▉                    | 51401/72397 [1:07:59<1:05:38,  5.33it/s]
 71%|██████████████████████████████████████████████████▌                    | 51501/72397 [1:08:03<48:57,  7.11it/s]
 71%|██████████████████████████████████████████████████▌                    | 51501/72397 [1:08:15<48:57,  7.11it/s]
 71%|██████████████████████████████████████████████████▌                    | 51601/72397 [1:08:16<48:11,  7.19it/s]
 71%|█████████████████████████████████████████████████▎                   | 51701/72397 [1:08:54<1:12:57,  4.73it/s]
 72%|█████████████████████████████████████████████████▎                   | 51801/72397 [1:09:06<1:02:53,  5.46it/s]
 72%|██████████████████████████████████████████████████▉                    | 51901/72397 [1:09:09<47:26,  7.20it/s]
 72%|██████████████████████████████████████████████████▉                    | 52001/72397 [1:09:17<40:47,  8.33it/s]
 72%|███████████████████████████████████████████████████                    | 52101/72397 [1:09:22<33:45, 10.02it/s]
 72%|███████████████████████████████████████████████████                    | 52101/72397 [1:09:35<33:45, 10.02it/s]
 72%|███████████████████████████████████████████████████▏                   | 52201/72397 [1:09:49<50:41,  6.64it/s]
 72%|███████████████████████████████████████████████████▎                   | 52301/72397 [1:10:11<57:32,  5.82it/s]
 72%|███████████████████████████████████████████████████▍                   | 52401/72397 [1:10:15<43:38,  7.64it/s]
 72%|███████████████████████████████████████████████████▍                   | 52401/72397 [1:10:25<43:38,  7.64it/s]
 73%|██████████████████████████████████████████████████                   | 52501/72397 [1:10:50<1:05:33,  5.06it/s]
 73%|███████████████████████████████████████████████████▌                   | 52601/72397 [1:10:59<54:42,  6.03it/s]
 73%|███████████████████████████████████████████████████▋                   | 52701/72397 [1:11:12<50:13,  6.54it/s]
 73%|███████████████████████████████████████████████████▊                   | 52801/72397 [1:11:34<57:13,  5.71it/s]
 73%|██████████████████████████████████████████████████▍                  | 52901/72397 [1:12:05<1:09:32,  4.67it/s]
 73%|██████████████████████████████████████████████████▌                  | 53001/72397 [1:13:05<1:46:52,  3.02it/s]
 73%|██████████████████████████████████████████████████▌                  | 53101/72397 [1:13:08<1:16:58,  4.18it/s]
 73%|██████████████████████████████████████████████████▋                  | 53201/72397 [1:13:18<1:03:21,  5.05it/s]
 74%|████████████████████████████████████████████████████▎                  | 53301/72397 [1:13:33<58:35,  5.43it/s]
 74%|████████████████████████████████████████████████████▎                  | 53401/72397 [1:13:46<52:40,  6.01it/s]
 74%|████████████████████████████████████████████████████▍                  | 53501/72397 [1:13:51<41:44,  7.55it/s]
 74%|████████████████████████████████████████████████████▍                  | 53501/72397 [1:14:05<41:44,  7.55it/s]
 74%|███████████████████████████████████████████████████                  | 53601/72397 [1:14:27<1:02:59,  4.97it/s]
 74%|████████████████████████████████████████████████████▋                  | 53701/72397 [1:14:28<45:12,  6.89it/s]
 74%|████████████████████████████████████████████████████▋                  | 53701/72397 [1:14:45<45:12,  6.89it/s]
 74%|████████████████████████████████████████████████████▊                  | 53801/72397 [1:14:57<58:24,  5.31it/s]
 74%|████████████████████████████████████████████████████▊                  | 53901/72397 [1:15:02<44:29,  6.93it/s]
 74%|████████████████████████████████████████████████████▊                  | 53901/72397 [1:15:15<44:29,  6.93it/s]
 75%|████████████████████████████████████████████████████▉                  | 54001/72397 [1:15:19<46:33,  6.58it/s]
 75%|█████████████████████████████████████████████████████                  | 54101/72397 [1:15:27<40:33,  7.52it/s]
 75%|█████████████████████████████████████████████████████▏                 | 54201/72397 [1:15:36<36:20,  8.34it/s]
 75%|█████████████████████████████████████████████████████▎                 | 54301/72397 [1:15:45<32:49,  9.19it/s]
 75%|█████████████████████████████████████████████████████▎                 | 54301/72397 [1:15:55<32:49,  9.19it/s]
 75%|███████████████████████████████████████████████████▊                 | 54401/72397 [1:16:27<1:01:14,  4.90it/s]
 75%|█████████████████████████████████████████████████████▍                 | 54501/72397 [1:16:44<57:23,  5.20it/s]
 75%|████████████████████████████████████████████████████                 | 54601/72397 [1:17:29<1:19:51,  3.71it/s]
 76%|████████████████████████████████████████████████████▏                | 54701/72397 [1:18:03<1:26:04,  3.43it/s]
 76%|████████████████████████████████████████████████████▏                | 54801/72397 [1:18:06<1:02:29,  4.69it/s]
 76%|█████████████████████████████████████████████████████▊                 | 54901/72397 [1:18:24<59:02,  4.94it/s]
 76%|█████████████████████████████████████████████████████▉                 | 55001/72397 [1:18:26<42:39,  6.80it/s]
 76%|██████████████████████████████████████████████████████                 | 55101/72397 [1:18:27<30:58,  9.31it/s]
 76%|██████████████████████████████████████████████████████▏                | 55201/72397 [1:18:34<27:22, 10.47it/s]
 76%|██████████████████████████████████████████████████████▏                | 55201/72397 [1:18:45<27:22, 10.47it/s]
 76%|██████████████████████████████████████████████████████▏                | 55301/72397 [1:19:05<46:03,  6.19it/s]
 77%|██████████████████████████████████████████████████████▎                | 55401/72397 [1:19:18<43:01,  6.58it/s]
 77%|████████████████████████████████████████████████████▉                | 55501/72397 [1:19:55<1:01:13,  4.60it/s]
 77%|████████████████████████████████████████████████████▉                | 55601/72397 [1:20:19<1:02:26,  4.48it/s]
 77%|█████████████████████████████████████████████████████                | 55701/72397 [1:20:40<1:01:20,  4.54it/s]
 77%|██████████████████████████████████████████████████████▋                | 55801/72397 [1:20:47<48:27,  5.71it/s]
 77%|██████████████████████████████████████████████████████▊                | 55901/72397 [1:20:55<39:40,  6.93it/s]
 77%|██████████████████████████████████████████████████████▊                | 55901/72397 [1:21:05<39:40,  6.93it/s]
 77%|██████████████████████████████████████████████████████▉                | 56001/72397 [1:21:32<57:55,  4.72it/s]
 77%|███████████████████████████████████████████████████████                | 56101/72397 [1:21:41<48:12,  5.63it/s]
 77%|███████████████████████████████████████████████████████                | 56101/72397 [1:21:55<48:12,  5.63it/s]
 78%|█████████████████████████████████████████████████████▌               | 56201/72397 [1:22:23<1:07:14,  4.01it/s]
 78%|███████████████████████████████████████████████████████▏               | 56301/72397 [1:22:27<50:11,  5.34it/s]
 78%|███████████████████████████████████████████████████████▎               | 56401/72397 [1:22:33<39:24,  6.77it/s]
 78%|███████████████████████████████████████████████████████▍               | 56501/72397 [1:22:35<29:10,  9.08it/s]
 78%|███████████████████████████████████████████████████████▌               | 56601/72397 [1:22:53<34:32,  7.62it/s]
 78%|███████████████████████████████████████████████████████▌               | 56701/72397 [1:23:07<35:09,  7.44it/s]
 78%|███████████████████████████████████████████████████████▋               | 56801/72397 [1:23:42<51:55,  5.01it/s]
 79%|███████████████████████████████████████████████████████▊               | 56901/72397 [1:23:59<48:53,  5.28it/s]
 79%|██████████████████████████████████████████████████████▎              | 57001/72397 [1:24:49<1:12:33,  3.54it/s]
 79%|███████████████████████████████████████████████████████▉               | 57101/72397 [1:24:49<50:32,  5.04it/s]
 79%|████████████████████████████████████████████████████████               | 57201/72397 [1:24:56<40:05,  6.32it/s]
 79%|████████████████████████████████████████████████████████▏              | 57301/72397 [1:25:01<31:34,  7.97it/s]
 79%|████████████████████████████████████████████████████████▏              | 57301/72397 [1:25:15<31:34,  7.97it/s]
 79%|████████████████████████████████████████████████████████▎              | 57401/72397 [1:25:16<33:48,  7.39it/s]
 79%|████████████████████████████████████████████████████████▍              | 57501/72397 [1:25:26<30:54,  8.03it/s]
 79%|████████████████████████████████████████████████████████▍              | 57501/72397 [1:25:45<30:54,  8.03it/s]
 80%|████████████████████████████████████████████████████████▍              | 57601/72397 [1:25:57<44:32,  5.54it/s]
 80%|████████████████████████████████████████████████████████▌              | 57701/72397 [1:26:15<43:47,  5.59it/s]
 80%|████████████████████████████████████████████████████████▋              | 57801/72397 [1:26:49<55:08,  4.41it/s]
 80%|████████████████████████████████████████████████████████▊              | 57901/72397 [1:26:54<42:07,  5.74it/s]
 80%|████████████████████████████████████████████████████████▊              | 57901/72397 [1:27:05<42:07,  5.74it/s]
 80%|████████████████████████████████████████████████████████▉              | 58001/72397 [1:27:18<46:46,  5.13it/s]
 80%|████████████████████████████████████████████████████████▉              | 58101/72397 [1:27:21<34:11,  6.97it/s]
 80%|████████████████████████████████████████████████████████▉              | 58101/72397 [1:27:35<34:11,  6.97it/s]
 80%|█████████████████████████████████████████████████████████              | 58201/72397 [1:27:39<36:32,  6.48it/s]
 81%|█████████████████████████████████████████████████████████▏             | 58301/72397 [1:27:41<26:53,  8.74it/s]
 81%|█████████████████████████████████████████████████████████▏             | 58301/72397 [1:27:55<26:53,  8.74it/s]
 81%|█████████████████████████████████████████████████████████▎             | 58401/72397 [1:27:56<29:04,  8.03it/s]
 81%|█████████████████████████████████████████████████████████▎             | 58501/72397 [1:27:58<21:43, 10.66it/s]
 81%|█████████████████████████████████████████████████████████▍             | 58601/72397 [1:28:07<21:10, 10.86it/s]
 81%|█████████████████████████████████████████████████████████▌             | 58701/72397 [1:28:08<15:23, 14.82it/s]
 81%|█████████████████████████████████████████████████████████▋             | 58801/72397 [1:28:14<14:58, 15.13it/s]
 81%|█████████████████████████████████████████████████████████▊             | 58901/72397 [1:28:19<13:59, 16.08it/s]
 81%|█████████████████████████████████████████████████████████▊             | 59001/72397 [1:28:33<19:17, 11.57it/s]
 82%|█████████████████████████████████████████████████████████▉             | 59101/72397 [1:28:38<16:42, 13.27it/s]
 82%|██████████████████████████████████████████████████████████             | 59201/72397 [1:28:46<16:28, 13.34it/s]
 82%|██████████████████████████████████████████████████████████▏            | 59301/72397 [1:28:46<11:35, 18.83it/s]
 82%|██████████████████████████████████████████████████████████▎            | 59401/72397 [1:28:47<08:28, 25.55it/s]
 82%|██████████████████████████████████████████████████████████▎            | 59501/72397 [1:28:51<08:56, 24.06it/s]
 82%|██████████████████████████████████████████████████████████▍            | 59601/72397 [1:28:55<08:36, 24.77it/s]
 82%|██████████████████████████████████████████████████████████▌            | 59701/72397 [1:28:57<07:21, 28.73it/s]
 83%|██████████████████████████████████████████████████████████▋            | 59801/72397 [1:29:07<10:56, 19.19it/s]
 83%|██████████████████████████████████████████████████████████▋            | 59901/72397 [1:29:08<08:20, 24.95it/s]
 83%|██████████████████████████████████████████████████████████▊            | 60001/72397 [1:29:21<13:50, 14.92it/s]
 83%|██████████████████████████████████████████████████████████▉            | 60101/72397 [1:29:28<13:57, 14.68it/s]
 83%|███████████████████████████████████████████████████████████            | 60201/72397 [1:29:29<10:20, 19.65it/s]
 83%|███████████████████████████████████████████████████████████▏           | 60301/72397 [1:29:30<07:33, 26.70it/s]
 83%|███████████████████████████████████████████████████████████▏           | 60401/72397 [1:29:31<05:49, 34.33it/s]
 83%|███████████████████████████████████████████████████████████▏           | 60401/72397 [1:29:45<05:49, 34.33it/s]
 84%|███████████████████████████████████████████████████████████▎           | 60501/72397 [1:29:45<12:53, 15.39it/s]
 84%|███████████████████████████████████████████████████████████▍           | 60601/72397 [1:29:46<09:32, 20.62it/s]
 84%|███████████████████████████████████████████████████████████▌           | 60701/72397 [1:29:48<07:25, 26.24it/s]
 84%|███████████████████████████████████████████████████████████▋           | 60801/72397 [1:30:00<12:24, 15.58it/s]
 84%|███████████████████████████████████████████████████████████▋           | 60901/72397 [1:30:08<13:04, 14.65it/s]
 84%|███████████████████████████████████████████████████████████▊           | 61001/72397 [1:30:09<09:26, 20.10it/s]
 84%|███████████████████████████████████████████████████████████▉           | 61101/72397 [1:30:09<06:39, 28.28it/s]
 85%|████████████████████████████████████████████████████████████           | 61201/72397 [1:30:11<06:00, 31.02it/s]
 85%|████████████████████████████████████████████████████████████           | 61301/72397 [1:30:18<07:59, 23.13it/s]
 85%|████████████████████████████████████████████████████████████▏          | 61401/72397 [1:30:25<09:07, 20.07it/s]
 85%|████████████████████████████████████████████████████████████▎          | 61501/72397 [1:30:26<07:10, 25.34it/s]
 85%|████████████████████████████████████████████████████████████▍          | 61601/72397 [1:30:28<05:53, 30.52it/s]
 85%|████████████████████████████████████████████████████████████▌          | 61701/72397 [1:30:35<08:04, 22.09it/s]
 85%|████████████████████████████████████████████████████████████▌          | 61801/72397 [1:30:37<06:17, 28.07it/s]
 86%|████████████████████████████████████████████████████████████▋          | 61901/72397 [1:30:38<05:10, 33.78it/s]
 86%|████████████████████████████████████████████████████████████▊          | 62001/72397 [1:30:40<04:33, 38.06it/s]
 86%|████████████████████████████████████████████████████████████▉          | 62101/72397 [1:30:47<06:37, 25.93it/s]
 86%|████████████████████████████████████████████████████████████▉          | 62101/72397 [1:31:05<06:37, 25.93it/s]
 86%|█████████████████████████████████████████████████████████████          | 62201/72397 [1:31:09<15:36, 10.88it/s]
 86%|█████████████████████████████████████████████████████████████          | 62301/72397 [1:31:10<11:35, 14.51it/s]
 86%|█████████████████████████████████████████████████████████████▏         | 62401/72397 [1:31:12<09:07, 18.26it/s]
 86%|█████████████████████████████████████████████████████████████▎         | 62501/72397 [1:31:14<07:13, 22.82it/s]
 86%|█████████████████████████████████████████████████████████████▍         | 62601/72397 [1:31:17<06:26, 25.32it/s]
 87%|█████████████████████████████████████████████████████████████▍         | 62701/72397 [1:31:18<05:02, 32.09it/s]
 87%|█████████████████████████████████████████████████████████████▌         | 62801/72397 [1:31:19<03:48, 42.06it/s]
 87%|█████████████████████████████████████████████████████████████▋         | 62901/72397 [1:31:31<08:23, 18.85it/s]
 87%|█████████████████████████████████████████████████████████████▊         | 63001/72397 [1:31:43<11:17, 13.87it/s]
 87%|█████████████████████████████████████████████████████████████▉         | 63101/72397 [1:31:45<09:01, 17.16it/s]
 87%|█████████████████████████████████████████████████████████████▉         | 63201/72397 [1:31:46<06:23, 24.00it/s]
 87%|██████████████████████████████████████████████████████████████         | 63301/72397 [1:31:47<05:08, 29.48it/s]
 88%|██████████████████████████████████████████████████████████████▏        | 63401/72397 [1:31:48<03:43, 40.29it/s]
 88%|██████████████████████████████████████████████████████████████▎        | 63501/72397 [1:31:49<03:16, 45.25it/s]
 88%|██████████████████████████████████████████████████████████████▍        | 63701/72397 [1:32:00<05:22, 26.95it/s]
 88%|██████████████████████████████████████████████████████████████▌        | 63801/72397 [1:32:12<08:11, 17.50it/s]
 88%|██████████████████████████████████████████████████████████████▋        | 63901/72397 [1:32:16<07:24, 19.12it/s]
 88%|██████████████████████████████████████████████████████████████▊        | 64001/72397 [1:32:18<06:21, 22.01it/s]
 89%|██████████████████████████████████████████████████████████████▊        | 64101/72397 [1:32:33<10:04, 13.73it/s]
 89%|██████████████████████████████████████████████████████████████▉        | 64201/72397 [1:32:33<07:15, 18.81it/s]
 89%|███████████████████████████████████████████████████████████████        | 64301/72397 [1:32:33<05:15, 25.68it/s]
 89%|███████████████████████████████████████████████████████████████▏       | 64401/72397 [1:32:35<04:05, 32.62it/s]
 89%|███████████████████████████████████████████████████████████████▎       | 64501/72397 [1:32:44<06:39, 19.75it/s]
 89%|███████████████████████████████████████████████████████████████▎       | 64601/72397 [1:32:53<07:50, 16.58it/s]
 89%|███████████████████████████████████████████████████████████████▍       | 64701/72397 [1:33:01<08:38, 14.83it/s]
 90%|███████████████████████████████████████████████████████████████▌       | 64801/72397 [1:33:03<06:49, 18.55it/s]
 90%|███████████████████████████████████████████████████████████████▋       | 64901/72397 [1:33:08<06:21, 19.66it/s]
 90%|███████████████████████████████████████████████████████████████▋       | 65001/72397 [1:33:08<04:30, 27.32it/s]
 90%|███████████████████████████████████████████████████████████████▊       | 65101/72397 [1:33:12<04:31, 26.90it/s]
 90%|███████████████████████████████████████████████████████████████▉       | 65201/72397 [1:33:13<03:23, 35.29it/s]
 90%|████████████████████████████████████████████████████████████████       | 65301/72397 [1:33:13<02:38, 44.89it/s]
 90%|████████████████████████████████████████████████████████████████▏      | 65401/72397 [1:33:23<05:09, 22.60it/s]
 90%|████████████████████████████████████████████████████████████████▏      | 65501/72397 [1:33:32<06:46, 16.95it/s]
 91%|████████████████████████████████████████████████████████████████▎      | 65601/72397 [1:33:37<06:05, 18.57it/s]
 91%|████████████████████████████████████████████████████████████████▍      | 65701/72397 [1:33:38<04:33, 24.45it/s]
 91%|████████████████████████████████████████████████████████████████▌      | 65801/72397 [1:33:42<04:38, 23.71it/s]
 91%|████████████████████████████████████████████████████████████████▋      | 65901/72397 [1:33:51<06:09, 17.57it/s]
 91%|████████████████████████████████████████████████████████████████▋      | 66001/72397 [1:34:01<07:25, 14.37it/s]
 91%|████████████████████████████████████████████████████████████████▊      | 66101/72397 [1:34:09<07:26, 14.11it/s]
 91%|████████████████████████████████████████████████████████████████▉      | 66201/72397 [1:34:10<05:32, 18.63it/s]
 92%|█████████████████████████████████████████████████████████████████      | 66301/72397 [1:34:19<06:36, 15.36it/s]
 92%|█████████████████████████████████████████████████████████████████      | 66401/72397 [1:34:21<05:10, 19.29it/s]
 92%|█████████████████████████████████████████████████████████████████▏     | 66501/72397 [1:34:23<04:13, 23.28it/s]
 92%|█████████████████████████████████████████████████████████████████▎     | 66601/72397 [1:34:24<03:07, 30.85it/s]
 92%|█████████████████████████████████████████████████████████████████▍     | 66701/72397 [1:34:29<03:29, 27.20it/s]
 92%|█████████████████████████████████████████████████████████████████▌     | 66801/72397 [1:34:40<05:29, 16.98it/s]
 92%|█████████████████████████████████████████████████████████████████▌     | 66901/72397 [1:34:40<03:52, 23.68it/s]
 93%|█████████████████████████████████████████████████████████████████▋     | 67001/72397 [1:34:46<04:14, 21.24it/s]
 93%|█████████████████████████████████████████████████████████████████▊     | 67101/72397 [1:34:48<03:27, 25.48it/s]
 93%|█████████████████████████████████████████████████████████████████▉     | 67201/72397 [1:34:50<02:52, 30.08it/s]
 93%|██████████████████████████████████████████████████████████████████     | 67301/72397 [1:34:52<02:31, 33.74it/s]
 93%|██████████████████████████████████████████████████████████████████     | 67401/72397 [1:34:55<02:29, 33.53it/s]
 93%|██████████████████████████████████████████████████████████████████▏    | 67501/72397 [1:34:58<02:24, 33.91it/s]
 93%|██████████████████████████████████████████████████████████████████▏    | 67501/72397 [1:35:15<02:24, 33.91it/s]
 93%|██████████████████████████████████████████████████████████████████▎    | 67601/72397 [1:35:16<06:00, 13.32it/s]
 94%|██████████████████████████████████████████████████████████████████▍    | 67701/72397 [1:35:21<05:16, 14.83it/s]
 94%|██████████████████████████████████████████████████████████████████▍    | 67801/72397 [1:35:33<06:17, 12.17it/s]
 94%|██████████████████████████████████████████████████████████████████▌    | 67901/72397 [1:35:36<05:04, 14.75it/s]
 94%|██████████████████████████████████████████████████████████████████▋    | 68001/72397 [1:35:37<03:40, 19.96it/s]
 94%|██████████████████████████████████████████████████████████████████▊    | 68101/72397 [1:35:39<02:52, 24.94it/s]
 94%|██████████████████████████████████████████████████████████████████▉    | 68201/72397 [1:35:39<02:02, 34.34it/s]
 94%|██████████████████████████████████████████████████████████████████▉    | 68301/72397 [1:35:46<02:41, 25.42it/s]
 94%|███████████████████████████████████████████████████████████████████    | 68401/72397 [1:35:47<02:02, 32.51it/s]
 95%|███████████████████████████████████████████████████████████████████▏   | 68501/72397 [1:35:54<02:50, 22.91it/s]
 95%|███████████████████████████████████████████████████████████████████▎   | 68601/72397 [1:36:03<03:36, 17.52it/s]
 95%|███████████████████████████████████████████████████████████████████▍   | 68701/72397 [1:36:05<02:54, 21.15it/s]
 95%|███████████████████████████████████████████████████████████████████▍   | 68801/72397 [1:36:06<02:09, 27.84it/s]
 95%|███████████████████████████████████████████████████████████████████▌   | 68901/72397 [1:36:08<01:42, 34.25it/s]
 95%|███████████████████████████████████████████████████████████████████▋   | 69001/72397 [1:36:08<01:16, 44.63it/s]
 95%|███████████████████████████████████████████████████████████████████▊   | 69101/72397 [1:36:22<03:03, 17.92it/s]
 96%|███████████████████████████████████████████████████████████████████▊   | 69201/72397 [1:36:27<02:51, 18.60it/s]
 96%|███████████████████████████████████████████████████████████████████▉   | 69301/72397 [1:36:39<03:51, 13.37it/s]
 96%|████████████████████████████████████████████████████████████████████   | 69401/72397 [1:36:40<02:47, 17.88it/s]
 96%|████████████████████████████████████████████████████████████████████▏  | 69501/72397 [1:36:41<02:02, 23.60it/s]
 96%|████████████████████████████████████████████████████████████████████▎  | 69701/72397 [1:36:42<01:08, 39.44it/s]
 96%|████████████████████████████████████████████████████████████████████▍  | 69801/72397 [1:36:50<01:36, 27.04it/s]
 97%|████████████████████████████████████████████████████████████████████▌  | 69901/72397 [1:36:51<01:16, 32.51it/s]
 97%|████████████████████████████████████████████████████████████████████▋  | 70001/72397 [1:36:55<01:19, 30.22it/s]
 97%|████████████████████████████████████████████████████████████████████▋  | 70001/72397 [1:37:05<01:19, 30.22it/s]
 97%|████████████████████████████████████████████████████████████████████▋  | 70101/72397 [1:37:07<02:10, 17.61it/s]
 97%|████████████████████████████████████████████████████████████████████▊  | 70201/72397 [1:37:10<01:52, 19.50it/s]
 97%|████████████████████████████████████████████████████████████████████▉  | 70301/72397 [1:37:21<02:22, 14.73it/s]
 97%|█████████████████████████████████████████████████████████████████████▏ | 70501/72397 [1:37:22<01:14, 25.38it/s]
 98%|█████████████████████████████████████████████████████████████████████▏ | 70601/72397 [1:37:26<01:08, 26.04it/s]
 98%|█████████████████████████████████████████████████████████████████████▎ | 70701/72397 [1:37:27<00:52, 32.30it/s]
 98%|█████████████████████████████████████████████████████████████████████▍ | 70801/72397 [1:37:28<00:41, 38.24it/s]
 98%|█████████████████████████████████████████████████████████████████████▌ | 70901/72397 [1:37:34<00:55, 27.11it/s]
 98%|█████████████████████████████████████████████████████████████████████▋ | 71001/72397 [1:37:38<00:50, 27.55it/s]
 98%|█████████████████████████████████████████████████████████████████████▋ | 71101/72397 [1:37:50<01:19, 16.29it/s]
 98%|█████████████████████████████████████████████████████████████████████▊ | 71201/72397 [1:37:58<01:17, 15.35it/s]
 98%|█████████████████████████████████████████████████████████████████████▉ | 71301/72397 [1:38:00<00:57, 19.18it/s]
 99%|██████████████████████████████████████████████████████████████████████ | 71401/72397 [1:38:02<00:42, 23.20it/s]
 99%|██████████████████████████████████████████████████████████████████████ | 71501/72397 [1:38:03<00:28, 30.94it/s]
 99%|██████████████████████████████████████████████████████████████████████▏| 71601/72397 [1:38:03<00:19, 41.01it/s]
 99%|██████████████████████████████████████████████████████████████████████▎| 71701/72397 [1:38:08<00:22, 30.60it/s]
 99%|██████████████████████████████████████████████████████████████████████▍| 71801/72397 [1:38:16<00:26, 22.39it/s]
 99%|██████████████████████████████████████████████████████████████████████▌| 71901/72397 [1:38:29<00:35, 13.88it/s]
 99%|██████████████████████████████████████████████████████████████████████▌| 72001/72397 [1:38:30<00:20, 19.51it/s]
100%|██████████████████████████████████████████████████████████████████████▋| 72101/72397 [1:38:31<00:12, 23.94it/s]
100%|██████████████████████████████████████████████████████████████████████▊| 72201/72397 [1:38:37<00:08, 22.15it/s]
100%|██████████████████████████████████████████████████████████████████████▉| 72301/72397 [1:38:37<00:03, 31.02it/s]
100%|███████████████████████████████████████████████████████████████████████| 72397/72397 [1:38:37<00:00, 12.23it/s]

The logs above show that the ZTF job loaded the light curve data successfully (“100%”) but exited without writing the parquet file (no “Light curves saved” message like Gaia). The data was lost. There is also no indication of an error; the job just ends. We can diagnose what happened by looking at the top output.

top#

While the jobs are running, you can monitor top and save the output to a log file by calling the script again with the -t flag. This call must be separate from the call that launches the run. If you want to capture the sample step as well as the archive queries, open a second terminal and call the script with -t right after launching the run in the first terminal.

$ interval=10m  # choose your interval
$ bash code_src/helpers/scale_up.sh -r "run_id" -t "$interval"

The script will continue running until after all of run_id’s jobs have completed. You can cancel at anytime with Control-C and start it again with a new interval.

Once saved to file, the helper can parse the top output into pandas DataFrames and make some figures.

top output from 2024/03/01:

run_id = "demo-SDSS-500k"
logs_dir = helpers.scale_up.run(build="logs_dir", run_id=run_id)

toplog = helpers.top.load_top_output(toptxt_dir=logs_dir, run_id=run_id)
# System summary information from lines 1-5 of `top` output. One row per time step.
toplog.summary_df.sample(5)
load_avg_per_1min load_avg_per_5min load_avg_per_15min total_GiB free_GiB used_GiB avail_GiB delta_time
time
2024-03-01 23:03:44+00:00 1.86 2.16 2.27 61.8 34.2 14.0 47.2 0 days 02:32:16
2024-03-01 21:23:40+00:00 1.37 0.91 0.83 61.8 44.6 8.3 52.9 0 days 00:52:12
2024-03-01 21:06:25+00:00 0.95 0.92 0.92 61.8 46.1 7.3 53.8 0 days 00:34:57
2024-03-01 21:21:50+00:00 0.69 0.62 0.73 61.8 47.1 5.8 55.4 0 days 00:50:22
2024-03-01 20:41:00+00:00 1.99 1.51 0.84 61.8 50.9 2.5 58.6 0 days 00:09:32
# Information about running processes from lines 6+ of `top` output. One row per process, per time step.
toplog.pids_df.sample(5)
job_name pid_name PID USER PR NI VIRTg RESg SHRg S %CPU %MEM TIME+ COMMAND delta_time
time
2024-03-01 20:38:23+00:00 wise wise 3980 jovyan 20 0 3.3 0.3 0.1 R 93.3 0.5 1:25.12 python 0 days 00:06:55
2024-03-01 20:59:19+00:00 ztf ztf 3984 jovyan 20 0 3.0 0.5 0.1 S 0.0 0.8 0:26.91 python 0 days 00:27:51
2024-03-01 21:23:25+00:00 ztf ztf 3984 jovyan 20 0 4.2 1.4 0.1 S 0.0 2.3 0:58.01 python 0 days 00:51:57
2024-03-01 21:05:59+00:00 ztf ztf 3984 jovyan 20 0 3.1 0.5 0.1 R 53.3 0.9 0:33.92 python 0 days 00:34:31
2024-03-01 21:22:01+00:00 ztf ztf 3984 jovyan 20 0 4.2 1.4 0.1 S 0.0 2.2 0:57.66 python 0 days 00:50:33
fig = toplog.plot_overview()
../_images/c873be9a9bb5ebeb05933a18837836b9daa557139adf8ac885ca29917208a97a.png

In the figure, panels 1 and 2 show CPU usage while 3 and 4 show memory usage. Panels 1 and 3 show system totals while panels 2 and 4 show usage by individual processes. Specifically:

  • Panel 1: System CPU load, averaged over the previous one minute. A value of “1” means that all compute tasks could have been completed by one CPU working 100% of the time (in reality, the tasks would have been split between the available CPUs). If this value exceeds the number of CPUs available, some tasks will wait in a queue before being executed.

  • Panel 2: Percentage of time the given process used a CPU. This can be greater than 100% if a process uses multiple threads.

  • Panel 3: Amount of unused memory available to the system. If this nears zero, the system will start killing processes so that the entire machine doesn’t go down.

  • Panel 4: Percentage of total RAM used by the given process.

There are many interesting features in the figure that the reader may want to look at in more detail. For example, other than ZTF’s memory spike at the end, we see that the full run collecting multi-wavelength light curves for the SDSS 500k sample could be completed with about 2 CPU and 60G RAM. We also see that the IceCube call completes very quickly but requires a significant amount of memory. Another observation is that the WISE call’s CPU activity seems to slow down when the ZTF workers are running, indicating that a different number of ZTF workers may be more efficient overall.

We want to learn why the ZTF job failed. Let’s zoom in on that time period:

fig = toplog.plot_overview(between_time=("22:55", "23:10"))
../_images/ada08908b72d8f3e65f819f24a4cb1de2fa4393db68c7de31f59a9075ef8cc15.png

In the second panel above we see the ZTF worker processes (which load the light curve data) ending just after 23:00 and then the ZTF parent process continues by itself. Around 23:06 in the fourth panel, we see the ZTF job’s memory usage rise sharply to almost 100% and then drop immediately to zero when the job terminates. This coincides with the total available memory dropping to near zero in the third panel. This shows that the machine did not have enough memory for the ZTF call to successfully transform the light curve data collected by the workers into a MultiIndexDFObject and write it as a parquet file, so the machine killed the job.

The solution is to rerun the ZTF archive call on a machine with more RAM.

To learn exactly which step in ztf_get_lightcurves was causing this and how much memory it actually needed, additional print statements were inserted into the code similar to the following:

# this was inserted just before "exploding" the dataframe in ztf_functions.py
# helpers.scale_up._now() prints the current timestamp
print(f"{helpers.scale_up._now()} | starting explode", flush=True)
# ztf_df = ztf_df.explode(...  # this is the next line in ztf_functions.py
2024/09/18 01:52:05 UTC | starting explode

ZTF was then rerun on a large machine and top output was saved. After the run, we manually compared timestamps between the ZTF log and top output and tagged relevant top timestamps with corresponding step names by appending the name to the ‘—-’ delineator, like this for the “explode” step:

!cat output/lightcurves-demo-SDSS-500k/logs/top.tag-ztf.txt | grep -A12 explode
----explode
2024/02/25 02:09:32 UTC
top - 02:09:32 up  1:20,  0 users,  load average: 1.00, 0.68, 0.43
Tasks:   1 total,   1 running,   0 sleeping,   0 stopped,   0 zombie
%Cpu(s):  0.6 us,  0.2 sy,  0.0 ni, 99.2 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
GiB Mem :    496.0 total,    454.7 free,     13.6 used,     27.7 buff/cache
GiB Swap:      0.0 total,      0.0 free,      0.0 used.    479.4 avail Mem 

   PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND
  1418 jovyan    20   0   82.5g  11.8g   0.1g R 100.0   2.4   4:20.44 ipython
----
2024/02/25 02:09:34 UTC
top - 02:09:34 up  1:20,  0 users,  load average: 1.08, 0.70, 0.44

The helper can recognize these tags and show them on a figure:

ztf_toplog = helpers.top.load_top_output(toptxt_file="top.tag-ztf.txt", toptxt_dir=logs_dir, run_id=run_id)

fig = ztf_toplog.plot_time_tags(summary_y="used_GiB")
# (This run starts by reading a previously cached parquet file containing the raw data returned by workers.)
../_images/ad1576e4ed77c96b2d0173fa124c75b61ea77e53e8dd7de3a6da01dd01b6e937.png

This figure shows that almost 100G RAM is required for the ZTF job to succeed. It further shows that the “explode” step requires the most memory, followed by creating the MultiIndexDFObject. From here, the user can choose an appropriately sized machine and/or consider whether ztf_get_lightcurves could be made to use less memory.

Example 2: Parallelizing the light_curve_generator notebook#

This example shows how to parallelize the example from the light_curve_generator notebook using the helper and python’s multiprocessing. An advantage of the method shown here is that it automatically saves the sample and light curve data to disk after loading them and can automatically skip those steps in subsequent calls and use the files instead. This is a small sample (Yang, 30 objects). If you want a sample larger than a few hundred, consider using the bash script instead.

Define the keyword arguments for the run:

kwargs_dict = {
    "run_id": "demo-Yang-sample",
    # Paper names to gather the sample from.
    "get_samples": ["Yang"],
    # Keyword arguments for *_get_lightcurves archive calls.
    "archives": {
        "Gaia": {"search_radius": 1 / 3600, "verbose": 0},
        "HEASARC": {"catalog_error_radii": {"FERMIGTRIG": 1.0, "SAXGRBMGRB": 3.0}},
        "IceCube": {"icecube_select_topN": 3, "max_search_radius": 2.0},
        "WISE": {"radius": 1.0, "bandlist": ["W1", "W2"]},
        "ZTF": {"match_radius": 1 / 3600, "nworkers": None},
    },
}
# See Example 3 for a detailed explanation of parameter options.
kwargs_dict
{'run_id': 'demo-Yang-sample',
 'get_samples': ['Yang'],
 'archives': {'Gaia': {'search_radius': 0.0002777777777777778, 'verbose': 0},
  'HEASARC': {'catalog_error_radii': {'FERMIGTRIG': 1.0, 'SAXGRBMGRB': 3.0}},
  'IceCube': {'icecube_select_topN': 3, 'max_search_radius': 2.0},
  'WISE': {'radius': 1.0, 'bandlist': ['W1', 'W2']},
  'ZTF': {'match_radius': 0.0002777777777777778, 'nworkers': None}}}

Decide which archives to query. This is a separate list because the helper can only run one archive call at a time. We will iterate over this list and launch each job separately.

# archive_names = ["PanSTARRS", "WISE"]  # choose your own list
archive_names = helpers.scale_up.ARCHIVE_NAMES["all"]  # predefined list
archive_names
['Gaia',
 'HCV',
 'HEASARC',
 'IceCube',
 'PanSTARRS',
 'TESS_Kepler',
 'WISE',
 'ZTF']

In the next cell, we:

  • collect the sample and write it as a .ecsv file; then

  • query the archives in parallel using a multiprocessing.Pool and write the light curve data as .parquet files.

%%time
sample_table = helpers.scale_up.run(build="sample", **kwargs_dict)
# sample_table is returned if you want to look at it but it is not used below

with multiprocessing.Pool(processes=len(archive_names)) as pool:
    # submit one job per archive
    for archive in archive_names:
        pool.apply_async(helpers.scale_up.run, kwds={"build": "lightcurves", "archive": archive, **kwargs_dict})
    pool.close()  # signal that no more jobs will be submitted to the pool
    pool.join()  # wait for all jobs to complete

# Note: The console output from different archive calls gets jumbled together below.
# Worse, error messages tend to get lost in the background and never displayed.
# If you have trouble, consider running an archive call individually without the Pool
# or using the bash script instead.
2024/09/18 01:52:05 UTC | [pid=2040] Starting build=sample
Building object sample from: ['yang']
Changing Look AGN- Yang et al:  31
Object sample size, after duplicates removal: 30
Object sample saved to: /home/runner/work/fornax-demo-notebooks/fornax-demo-notebooks/light_curves/output/lightcurves-demo-Yang-sample/object_sample.ecsv
2024/09/18 01:52:11 UTC
2024/09/18 01:52:11 UTC | [pid=2081] Starting build=lightcurves, archive=icecube
2024/09/18 01:52:11 UTC | [pid=2080] Starting build=lightcurves, archive=heasarc

2024/09/18 01:52:11 UTC | [pid=2082] Starting build=lightcurves, archive=panstarrs
2024/09/18 01:52:11 UTC | [pid=2084] Starting build=lightcurves, archive=wise
2024/09/18 01:52:11 UTC | [pid=2078] Starting build=lightcurves, archive=gaia




2024/09/18 01:52:11 UTC | [pid=2085] Starting build=lightcurves, archive=ztf
2024/09/18 01:52:11 UTC | [pid=2079] Starting build=lightcurves, archive=hcv

2024/09/18 01:52:11 UTC | [pid=2083] Starting build=lightcurves, archive=tess_kepler


  0%|          | 0/1 [00:00<?, ?it/s]
working on mission
 
FERMIGTRIG

100%|██████████| 1/1 [00:02<00:00,  2.95s/it]
100%|██████████| 1/1 [00:02<00:00,  2.95s/it]

INFO
: Query finished. [astroquery.utils.tap.core]

working on mission
 
SAXGRBMGRB

Light curves saved to:
	parquet_dir=/home/runner/work/fornax-demo-notebooks/fornax-demo-notebooks/light_curves/output/lightcurves-demo-Yang-sample/lightcurves.parquet
	file=archive=gaia/part0.snappy.parquet

2024/09/18 01:52:15 UTC

Light curves saved to:
	parquet_dir=/home/runner/work/fornax-demo-notebooks/fornax-demo-notebooks/light_curves/output/lightcurves-demo-Yang-sample/lightcurves.parquet
	file=archive=heasarc/part0.snappy.parquet

2024/09/18 01:52:16 UTC

No data found for target "<SkyCoord (ICRS): (ra, dec) in deg
    (0.28136, -0.09792)>".
No data found for target "<SkyCoord (ICRS): (ra, dec) in deg
    (21.70042, -8.66336)>".
No data found for target "<SkyCoord (ICRS): (ra, dec) in deg
    (29.99, 0.55301)>".
Light curves saved to:
	parquet_dir=/home/runner/work/fornax-demo-notebooks/fornax-demo-notebooks/light_curves/output/lightcurves-demo-Yang-sample/lightcurves.parquet
	file=archive=icecube/part0.snappy.parquet

2024/09/18 01:52:26 UTC

No data found for target "<SkyCoord (ICRS): (ra, dec) in deg
    (120.9482, 42.97751)>".
Light curves saved to:
	parquet_dir=/home/runner/work/fornax-demo-notebooks/fornax-demo-notebooks/light_curves/output/lightcurves-demo-Yang-sample/lightcurves.parquet
	file=archive=panstarrs/part0.snappy.parquet

2024/09/18 01:52:30 UTC

No data found for target "<SkyCoord (ICRS): (ra, dec) in deg
    (127.88438, 36.77141)>".
No data found for target "<SkyCoord (ICRS): (ra, dec) in deg
    (132.49079, 27.79135)>".
No data found for target "<SkyCoord (ICRS): (ra, dec) in deg
    (137.38344, 47.79187)>".
No light curve data was returned from hcv.

No data found for target "<SkyCoord (ICRS): (ra, dec) in deg
    (144.37634, 26.04227)>".
No data found for target "<SkyCoord (ICRS): (ra, dec) in deg
    (144.39779, 32.54717)>".
No data found for target "<SkyCoord (ICRS): (ra, dec) in deg
    (150.84779, 35.41774)>".
No data found for target "<SkyCoord (ICRS): (ra, dec) in deg
    (152.97079, 54.70177)>".
No data found for target "<SkyCoord (ICRS): (ra, dec) in deg
    (166.09679, 63.71812)>".
No data found for target "<SkyCoord (ICRS): (ra, dec) in deg
    (166.22988, 1.31573)>".
No data found for target "<SkyCoord (ICRS): (ra, dec) in deg
    (167.60604, -0.05948)>".
No data found for target "<SkyCoord (ICRS): (ra, dec) in deg
    (168.90237, 5.74715)>".
No data found for target "<SkyCoord (ICRS): (ra, dec) in deg
    (169.62359, 32.06669)>".
No data found for target "<SkyCoord (ICRS): (ra, dec) in deg
    (173.12143, 3.9581)>".
No data found for target "<SkyCoord (ICRS): (ra, dec) in deg
    (177.66379, 36.54955)>".
No data found for target "<SkyCoord (ICRS): (ra, dec) in deg
    (178.11453, 32.16649)>".
No data found for target "<SkyCoord (ICRS): (ra, dec) in deg
    (194.81977, 55.25198)>".
No data found for target "<SkyCoord (ICRS): (ra, dec) in deg
    (199.87816, 67.89873)>".
No data found for target "<SkyCoord (ICRS): (ra, dec) in deg
    (209.07708, -1.25389)>".
Light curves saved to:
	parquet_dir=/home/runner/work/fornax-demo-notebooks/fornax-demo-notebooks/light_curves/output/lightcurves-demo-Yang-sample/lightcurves.parquet
	file=archive=wise/part0.snappy.parquet

2024/09/18 01:54:05 UTC

No data found for target "<SkyCoord (ICRS): (ra, dec) in deg
    (209.73261, 49.57057)>".
No data found for target "<SkyCoord (ICRS): (ra, dec) in deg
    (221.97599, 28.55671)>".
No data found for target "<SkyCoord (ICRS): (ra, dec) in deg
    (233.48329, 1.17494)>".
No data found for target "<SkyCoord (ICRS): (ra, dec) in deg
    (236.37346, 25.19108)>".
No data found for target "<SkyCoord (ICRS): (ra, dec) in deg
    (237.57182, 41.65067)>".
No data found for target "<SkyCoord (ICRS): (ra, dec) in deg
    (238.24283, 27.62461)>".
No data found for target "<SkyCoord (ICRS): (ra, dec) in deg
    (238.66777, 36.49777)>".
No data found for target "<SkyCoord (ICRS): (ra, dec) in deg
    (354.01239, 0.29138)>".
No light curve data was returned from tess_kepler.

CPU times: user 514 ms, sys: 224 ms, total: 738 ms
Wall time: 2min 30s

The light curves are saved in the “parquet_dir” directory. Each archive call writes data to a parquet file in its own subdirectory. These can be loaded together as a single dataset:

# copy/paste the directory path from the output above, or ask the helper for it like this:
parquet_dir = helpers.scale_up.run(build="parquet_dir", **kwargs_dict)
df_lc = pd.read_parquet(parquet_dir)

df_lc.sample(10)
flux err archive
objectid label band time
29 Yang 18 panstarrs g 56470.298688 0.048779 0.001156 panstarrs
4 Yang 18 panstarrs i 55910.592681 0.035346 0.002005 panstarrs
8 Yang 18 W1 57144.457512 0.816329 0.007353 wise
10 Yang 18 RP 57519.366168 0.561396 0.010423 gaia
14 Yang 18 G 57762.360986 0.041815 0.001314 gaia
26 Yang 18 panstarrs g 56066.510054 0.222233 0.002400 panstarrs
30 Yang 18 panstarrs g 55476.346454 0.011673 0.001381 panstarrs
24 Yang 18 G 57110.409530 0.191295 0.001727 gaia
1 Yang 18 W1 58290.538189 0.276590 0.007813 wise
10 Yang 18 RP 57655.303876 0.933016 0.012800 gaia

Now we can make figures:

_ = create_figures(df_lc=MultiIndexDFObject(data=df_lc), show_nbr_figures=1, save_output=False)
../_images/e4c0cab0de9640b044f06d18398126c6a29b6b35a545782dd7e79494fce20849.png
Done

Example 3: Keyword arguments and script flags#

This example shows the python kwargs_dict and bash script flag options in more detail.

Python kwargs_dict#

kwargs_dict is a dictionary containing all keyword arguments for the run. It can contain:

  • names and keyword arguments for any of the get_*_sample functions.

  • keyword arguments for any of the *_get_lightcurves functions.

  • other keyword arguments used directly by the helper. These options and their defaults are shown below, further documented in the helper’s run function.

# show kwargs_dict defaults
helpers.scale_up.DEFAULTS
{'run_id': 'my-run',
 'get_samples': ['Yang'],
 'consolidate_nearby_objects': True,
 'overwrite_existing_sample': True,
 'archives': ['Gaia',
  'HCV',
  'HEASARC',
  'IceCube',
  'PanSTARRS',
  'TESS_Kepler',
  'WISE',
  'ZTF'],
 'overwrite_existing_lightcurves': True,
 'use_yaml': False,
 'yaml_filename': 'kwargs.yml',
 'sample_filename': 'object_sample.ecsv',
 'parquet_dataset_name': 'lightcurves.parquet'}
# show parameter documentation
print(helpers.scale_up.run.__doc__)
Run the light_curve_generator step indicated by `build`.

    Parameters
    ==========

    build : str
        Which step to run. Generally either "sample" or "lightcurves". Can also be either "kwargs"
        or any of the `kwargs_dict` keys, and then the full set of kwargs is built from `kwargs_dict`
        and either the whole dictionary is returned (if "kwargs") or the value of this key is returned.

    kwargs_dict
        Key/value pairs for the build function. This can include any key in the dict
        `helpers.scale_up.DEFAULTS` plus "archive". These are described below.

        run_id : str
            ID for this run. This is used to name the output subdirectory ("base_dir") where the
            scale_up helper will read/write files.

        get_samples : list or dict[dict]
            Names of get_<name>_sample functions from which to gather the object sample.
            To send keyword arguments for any of the named functions, use a dict with key=name
             value=dict of keyword arguments for the named function). Defaults will be
            used for any parameter not provided.

        consolidate_nearby_objects : bool
            Whether to consolidate nearby objects in the sample. Passed to the clean_sample function.

        overwrite_existing_sample : bool
            Whether to overwrite an existing .ecsv file. If false and the file exists, the sample will simply
            be loaded from the file and returned.

        archive : str
            Name of a <name>_get_lightcurves archive function to call when building light curves.

        archives : list or dict[dict]
            Names of <name>_get_lightcurves functions. Use a dict (key=name, value=dict of kwargs for the named
            function) to override defaults for the named function. **Note that this does not determine which
            archives are actually called** (unlike `get_samples` with sample names). This is because the
            scale_up helper can only run one function at a time, so a single archive name must be passed separately
            when building light curves.

        overwrite_existing_lightcurves : bool
            Whether to overwrite an existing .parquet file. If false and the file exists, the light curve
            data will simply be loaded from the file and returned.

        use_yaml : bool
            Whether to load additional kwargs from a yaml file.

        yaml_filename : str
            Name of the yaml to read/write, relative to the base_dir.

        sample_filename: str
            Name of the `sample_table` .ecsv file to read/write, relative to the base_dir.

        parquet_dataset_name : str
            Name of the directory to read/write the parquet dataset, relative to the base_dir.
            The dataset will contain one .parquet file for each archive that returned light curve data.
    

Bash script flags#

Use the -h (help) flag to view the script’s flag options:

# show flag documentation
!bash code_src/helpers/scale_up.sh -h
---- scale_up.sh ----

Use this script to launch and monitor a large-scale "run" to load a sample of target objects
from the literature and collect their multi-wavelength light curves from various archives.
For complete usage information, see the scale_up notebook tutorial.

FLAG OPTIONS
------------

Required flags:

    -r 'run_id'
        ID for the run. No spaces or special characters.
        Determines the name of the output directory.
        Can be used in multiple script calls to manage the same run.

Flags used to launch a run (optional):

    -a 'archive names'
        Space-separated list of archive names like 'HEASARC PanSTARRS WISE' (case insensitive),
        or a shortcut, e.g., 'all'.
        The get_<name>_lightcurves function will be called once for each name.
        If this flag is not supplied, no light-curve data will be retrieved.

    -d 'key=value'
        Any top-level key/value pair in the python kwargs_dict where the
        value is a basic type (e.g., bool or string, but not list or dict).
        Repeat the flag to send multiple kwargs.
        For more flexibility, use the -j flag and/or store the kwargs_dict as a
        yaml file and use: -d 'use_yaml=true'. Order of precedence is dict, json, yaml.

    -j 'json string'
        The python kwargs_dict as a json string. An example usage is:
        -j '{get_samples: {SDSS: {num: 50}}, archives: {ZTF: {nworkers: 8}}}'
        The string can be created in python by first constructing the dictionary and then using:
            >>> import json
            >>> json.dumps(kwargs_dict)
        Copy the output, including the surrounding single quotes ('), and paste it as the flag value.

Other flags (optional):
    These must be used independently and cannot be combined with any other optional flag.

    -t 'nsleep'
        Use this flag to monitor top after launching a run. This will filter for PIDs
        launched by 'run_id' and save the output to a log file once every 'nsleep' interval.
        'nsleep' will be passed to the sleep command, so values like '10s' and '30m' are allowed.
        The python helper can load the output.
        This option is only available on Linux machines.

    -k (kill)
        Use this flag to kill all processes that were started using the given 'run_id'.
        This option is only available on Linux machines.

    -h (help)
        Print this help message.

Using a yaml file#

It can be convenient to save the parameters in a yaml file, especially when using the bash script or in cases where you want to store parameters for later reference or re-use.

Define an extended set of parameters and save it as a yaml file:

yaml_run_id = "demo-kwargs-yaml"

get_samples = {
    "green": {},
    "ruan": {},
    "papers_list": {
        "paper_kwargs": [
            {"paper_link": "2022ApJ...933...37W", "label": "Galex variable 22"},
            {"paper_link": "2020ApJ...896...10B", "label": "Palomar variable 20"},
        ]
    },
    "SDSS": {"num": 10, "zmin": 0.5, "zmax": 2, "randomize_z": True},
    "ZTF_objectid": {"objectids": ["ZTF18aabtxvd", "ZTF18aahqkbt", "ZTF18abxftqm", "ZTF18acaqdaa"]},
}

archives = {
    "Gaia": {"search_radius": 2 / 3600},
    "HEASARC": {"catalog_error_radii": {"FERMIGTRIG": 1.0, "SAXGRBMGRB": 3.0}},
    "IceCube": {"icecube_select_topN": 4, "max_search_radius": 2.0},
    "WISE": {"radius": 1.5, "bandlist": ["W1", "W2"]},
    "ZTF": {"nworkers": 6, "match_radius": 2 / 3600},
}

yaml_kwargs_dict = {
    "get_samples": get_samples,
    "consolidate_nearby_objects": False,
    "archives": archives,
}

helpers.scale_up.write_kwargs_to_yaml(run_id=yaml_run_id, **yaml_kwargs_dict)
kwargs written to /home/runner/work/fornax-demo-notebooks/fornax-demo-notebooks/light_curves/output/lightcurves-demo-kwargs-yaml/kwargs.yml

The path to the yaml file is printed in the output above. You can alter the contents of the file as you like. To use the file, set the kwarg use_yaml=True.

Python example for the get-sample step:

sample_table = helpers.scale_up.run(build="sample", run_id=yaml_run_id, use_yaml=True)
2024/09/18 01:54:36 UTC | [pid=2040] Starting build=sample
Building object sample from: ['sdss', 'ztf_objectid', 'green', 'papers_list', 'ruan']
WARNING: OverflowError converting to IntType in column specObjID, reverting to String. [astropy.io.ascii.fastbasic]
SDSS Quasar: 10
number of ztf coords added by Objectname: 4
Changing Look AGN- Green et al 2022:  19
number of sources added from Galex variable 22 :48
number of sources added from Palomar variable 20 :20
Changing Look AGN- Ruan et al 2016:  3
Object sample size: 104
Object sample saved to: /home/runner/work/fornax-demo-notebooks/fornax-demo-notebooks/light_curves/output/lightcurves-demo-kwargs-yaml/object_sample.ecsv
2024/09/18 01:55:15 UTC

Bash example:

$ yaml_run_id=demo-kwargs-yaml
$ bash code_src/helpers/scale_up.sh -r "$yaml_run_id" -d "use_yaml=true" -a "Gaia HEASARC IceCube WISE ZTF"

Appendix: What to expect#

Challenges of large-scale runs#

Scaling up to large sample sizes brings new challenges. Even if things go smoothly, each function call may need to use a lot more resources like CPU, RAM, and bandwidth, and may take much longer to complete. Also, we’ll want to run some functions in parallel to save time overall, but that will mean they must compete with each other for resources.

These issues are complicated by the fact that different combinations of samples and archive calls can trigger different problems. Inefficiencies in any part of the process – our code, archive backends, etc. – which may have been negligible at small scale can balloon into significant hurdles.

Problems can manifest in different ways. For example, progress may slow to a crawl, or it may run smoothly for several hours and then crash suddenly. If the job is running in the background, print statements and error messages may get lost and never be displayed for the user if they are not redirected to a file.

Needs and wants for large-scale runs#

The main goal is to reduce the total time it takes to run the full code, so we want to look for opportunities to parallelize. We can group the light_curve_generator code into two main steps: (1) gather the target object sample; then (2) generate light curves by querying the archives and standardizing the returned data. All of the archive calls have to wait for the sample to be available before starting, but then they can run independently in parallel. This is fortunate, since gathering the sample does not take long compared to the archive calls.

It is useful to be able to monitor the run’s resource usage and capture print statements, error messages, etc. to log files in order to understand if/when something goes wrong. Even with parallelization, gathering light curves for a large sample of objects is likely to take a few hours at least. So we want to automate the monitoring tasks as much as possible.

If the run fails, we’d like to be able to restart it without having to redo steps that were previously successful. To accomplish this, the inputs and outputs need to be less tightly coupled than they are in the light_curve_generator notebook. Specifically, we want to save the sample and light curve data to file as soon as each piece is collected, and we want the archive functions to be able to get the sample_table input from file.

The python helper and bash script were specifically designed to fulfill many of these wants and needs.

Advice for the user#

Getting started:

  1. Skim this notebook to understand the process, available options, and potential sticking points.

  2. Try things with a small sample size first, then scale up to your desired full sample.

  3. Don’t be surprised if something goes wrong. Every new combination of factors can present different challenges and reasons for the code to fail. This includes the sample selection, which archives are called and what parameters are used, runtime environment, machine CPU and RAM capabilities, network bandwidth, etc. Scaling up any code base comes with challenges, and some of these cannot be fully managed by pre-written code. You may need to observe how the code performs, diagnose a problem, and adapt the input parameters, machine size, etc. in order to successfully execute.

To execute a run:

  1. Define all of the get-sample and get-lightcurve parameters.

  2. Launch the run by calling the bash script or some other multi-processing method. Capturing stdout, stderr and top output to log files is highly recommended.

  3. If a get-lightcurve (get-sample) job exits without writing a .parquet (.ecsv) file, inspect the logs and top output to try to determine the reason it failed. It could be anything from a missing python library (install it), to an archive encountering an internal error (wait a bit and try again), to the job getting killed prematurely because its needs exceeded the available RAM (try a machine with more RAM, a smaller sample size, or running fewer archive calls at a time), to many other things.

About this notebook#

Authors: Troy Raen, Jessica Krick, Brigitta Sipőcz, Shoubaneh Hemmati, Andreas Faisst, David Shupe

Updated On: 2024-04-05