@@ -253,10 +253,10 @@ void write_visibility(const utilities::vis_params& uv_vis, const std::string& h5
253253 // its allocated segment (or a subset thereof)
254254 HighFive::DataSetCreateProps props;
255255 if (uv_vis.u .size ()) {
256- if (chunkize > 0 ) {
256+ if (chunksize > 0 ) {
257257 props.add (HighFive::Chunking (std::vector<hsize_t >{chunksize}));
258258 } else {
259- props.add (HighFive::Chunking (std::vector<hsize_t >{uv_vis.u .size ()}));
259+ props.add (HighFive::Chunking (std::vector<hsize_t >{static_cast < hsize_t >( uv_vis.u .size () )}));
260260 }
261261 props.add (HighFive::Deflate (9 )); // maximal compression
262262 }
@@ -270,14 +270,14 @@ void write_visibility(const utilities::vis_params& uv_vis, const std::string& h5
270270 " w" , std::vector<t_real>(uv_vis.w .data (), uv_vis.w .data () + uv_vis.w .size ()), props);
271271 }
272272
273- vector<t_real> redata, imdata, sigma;
273+ std:: vector<t_real> redata, imdata, sigma;
274274 redata.reserve (uv_vis.vis .size ());
275275 imdata.reserve (uv_vis.vis .size ());
276276 sigma.reserve (uv_vis.weights .size ());
277277 for (size_t i = 0 ; i < uv_vis.vis .size (); ++i) {
278278 redata.push_back (uv_vis.vis (i).real ());
279279 imdata.push_back (uv_vis.vis (i).imag ());
280- sigma.push_back (1 / uv_vis.weights (i));
280+ sigma.push_back (1.0 / uv_vis.weights (i). real ( ));
281281 }
282282 h5file.createDataSet (" re" , std::move (redata), props);
283283 h5file.createDataSet (" im" , std::move (imdata), props);
0 commit comments