1- // Copyright (c) 2020-2022 , NVIDIA CORPORATION & AFFILIATES. All rights reserved.
1+ // Copyright (c) 2020-2023 , NVIDIA CORPORATION & AFFILIATES. All rights reserved.
22//
33// Licensed under the Apache License, Version 2.0 (the "License");
44// you may not use this file except in compliance with the License.
@@ -43,7 +43,7 @@ This operator can be used in the following modes:
43432. Read file names from a text file indicated in ``file_list`` argument.
44443. Read files listed in ``files`` argument.
45454. Number of outputs per sample corresponds to the length of ``hdu_indices`` argument. By default,
46- first HDU with data is read from each file, so the number of outputs defaults to 1.
46+ first HDU with data is read from each file, so the number of outputs defaults to 1.
4747)" )
4848 .NumInput(0 )
4949 .OutputFn(detail::FitsReaderOutputFn)
@@ -78,7 +78,7 @@ If ``file_root`` is provided, the paths are treated as being relative to it.
7878This argument is mutually exclusive with ``file_list``.)" ,
7979 nullptr )
8080 .AddOptionalArg(" hdu_indices" ,
81- R"( HDU indices to read. If not provided, the first HDU after the primary
81+ R"( HDU indices to read. If not provided, the first HDU after the primary
8282will be yielded. Since HDUs are indexed starting from 1, the default value is as follows: hdu_indices = [2].
8383Size of the provided list hdu_indices defines number of outputs per sample.)" ,
8484 std::vector<int >{2 })
@@ -104,7 +104,7 @@ void FitsReaderCPU::RunImpl(Workspace &ws) {
104104 sample.data [output_idx].nbytes ());
105105 };
106106 if (threaded) {
107- ws.GetThreadPool ().AddWork (std::move (copy_task), -file_idx);
107+ ws.GetThreadPool ().AddTask (std::move (copy_task), -file_idx);
108108 } else {
109109 copy_task (0 );
110110 }
0 commit comments