Skip to content

Commit

Permalink
#7: Apply TD reviews
Browse files Browse the repository at this point in the history
  • Loading branch information
maxime-bfsquall committed Sep 28, 2024
1 parent 20a88e9 commit 445e680
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 17 deletions.
6 changes: 0 additions & 6 deletions ci/docker/build-and-test-ubuntu.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,6 @@ FROM ${BASE_IMAGE} AS base
ENV CONDA_PATH=/opt/conda
ENV PATH=$PATH:$CONDA_PATH/bin

# Setup python requirements for JSON datafile validation
RUN pip install PyYAML
RUN pip install Brotli
RUN pip install schema
RUN pip install nanobind

COPY . /opt/src/vt-tv
RUN mkdir -p /opt/build/vt-tv

Expand Down
4 changes: 0 additions & 4 deletions ci/setup_conda.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,6 @@ do

. $CONDA_PATH/etc/profile.d/conda.sh && conda activate py${python_version}
echo "Python version: $(python --version)"
pip install PyYAML
pip install Brotli
pip install schema
pip install nanobind
conda deactivate
echo "::endgroup::"
done
14 changes: 7 additions & 7 deletions src/vt-tv/utility/json_reader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -290,13 +290,13 @@ bool JSONReader::validate_datafile(std::string file_path)

// Prepare command line
std::string cmd;
cmd +="python";
cmd +=" ";
cmd +=SRC_DIR;
cmd +="/scripts/json_datafile_validator.py";
cmd +=" ";
cmd +=" --file_path=";
cmd +=file_path.data();
cmd += "python";
cmd += " ";
cmd += SRC_DIR;
cmd += "/scripts/json_datafile_validator.py";
cmd += " ";
cmd += " --file_path=";
cmd += file_path.data();

// Exit code
int exit_code = std::system(cmd.c_str());
Expand Down

0 comments on commit 445e680

Please sign in to comment.