Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Sep 30, 2024
1 parent 93cfcf8 commit 7d06908
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/init_python.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ int init_python(int argc, char* argv[]) {
else
YT_ABORT("Adding search path for modules ... failed!\n");

// set up yt config
// (sys._parallel = True --> run yt in parallel )
// (sys._interactive_mode = True --> mpi does not abort when there is error)
// set up yt config
// (sys._parallel = True --> run yt in parallel )
// (sys._interactive_mode = True --> mpi does not abort when there is error)
#if defined(INTERACTIVE_MODE) || defined(JUPYTER_KERNEL)
if (PyRun_SimpleString("sys._parallel = True; sys._interactive_mode = True") == 0)
#else
Expand Down
2 changes: 1 addition & 1 deletion src/yt_run_ReloadScript.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ int yt_run_ReloadScript(const char* flag_file_name, const char* reload_file_name
// Return : true/false
//-------------------------------------------------------------------------------------------------------
static bool detect_file(const char* flag_file) {
struct stat buffer {};
struct stat buffer{};
if (stat(flag_file, &buffer) != 0) {
return false;
} else {
Expand Down

0 comments on commit 7d06908

Please sign in to comment.