Skip to content

Commit c15aed2

Browse files
[pre-commit.ci lite] apply automatic fixes
1 parent fbd9a6e commit c15aed2

File tree

1 file changed

+2
-1
lines changed
  • source/module_hamilt_pw/hamilt_ofdft/ml_tools

1 file changed

+2
-1
lines changed

source/module_hamilt_pw/hamilt_ofdft/ml_tools/data.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ Data::~Data()
1717

1818
void Data::load_data(Input &input, const int ndata, std::string *dir, const torch::Device device)
1919
{
20-
if (ndata <= 0) return;
20+
if (ndata <= 0) { return;
21+
}
2122
this->init_label(input);
2223
this->init_data(input.nkernel, ndata, input.fftdim, device);
2324
this->load_data_(input, ndata, input.fftdim, dir);

0 commit comments

Comments
 (0)