 CONDITIONS OF ANY KIND, either express or implied.
#  See the License for the specific language governing permissions and
#  limitations under the License.
#

set -e

source_dir=$(
  cd $(dirname $0)
  cd../
  cd../
  pwd
)
echo "[INFO] source dir: ${source_dir}"
cd ${source_dir}
source./bin/common.sh

if [[ -n ${1} ]]; then
  version_tag=$1
else
  version_tag="rc"
fi
repo_file_path=$2
pip_index_url=$3

version=$(grep "FATE=" fate.env | awk -F '=' '{print $2}')
standalone_install_package_dir_name="standalone_fate_install_${version}_${version_tag}"
standalone_install_package_dir=${source_dir}/${standalone_install_package_dir_name}

package_dir_name="standalone_fate_docker_${version}_${version_tag}"
package_dir=${source_dir}/${package_dir_name}

image_namespace="federatedai"
image_name="standalone_fate"
if [[ ${version_tag} == ${RELEASE_VERSION_TAG_NAME} ]]; then
  image_tag=${version}
else
  image_tag="${version}-${version_tag}"
fi
image_path=${image_namespace}/${image_name}:${image_tag}

echo "[INFO] build info"
echo "[INFO] version: "${version}
echo "[INFO] version tag: "${version_tag}
echo "[INFO] repo file: "${repo_file_path}
echo "[INFO] pip index url: "${pip_index_url}
echo "[INFO] image namespace: "${image_namespace}
echo "[INFO] image name: "${image_name}
echo "[INFO] image tag: "${image_tag}
echo "[INFO] image path: "${image_path}
echo "[INFO] package output dir is "${package_dir}

rm -rf ${package_dir}
mkdir -p ${package_dir}

build() {
  cd ${source_dir}

  bash build/standalone-docker-build/base/build.sh -m "python" -r ${repo_file_path} -i ${pip_index_url}

  cp ${source_dir}/build/standalone-docker-build/docker-entrypoint.sh ${package_dir}/
  cp ${source_dir}/build/standalone-docker-build/Dockerfile ${package_dir}/

  workdir=${package_dir}/fate
  if [[ -d ${workdir} ]]; then
    rm -rf ${workdir}
  fi
  mkdir -p ${workdir}

  echo "[INFO] get standalone install package"
  if [[ -d ${standalone_install_package_dir} ]]; then
    echo "[INFO] standalone install package already exists, skip build"
  else
    bash build/standalone-install-build/build.sh ${version_tag} 1
  fi

  echo "[INFO] copy standalone install package"
  cp -r ${standalone_install_package_dir}/* ${workdir}/
  echo "[INFO] get standalone install package done"

  cd ${workdir}
  rm -rf env/pypi env/python36
  tar -cf../fate.tar./*
  cd../

  image_id=$(docker images -q ${image_path})
  if [[ -n ${image_id} ]]; then
    echo "[INFO] already have image, image id: ${image_id}"
    docker rmi ${image_path}
    if [[ $? -eq 0 ]]; then
      echo "[INFO] delete image ${image_path} ${image_id}"
    else
      echo "please rm image ${image_path} ${image_id}"
      exit 1
    fi
  fi
  docker build -t ${image_path}. --build-arg version=${version}
}

packaging() {
  cd ${package_dir}
  image_tar="standalone_fate_docker_image_"${version}_${version_tag}".tar"

  if [[ -f ${image_tar} ]]; then
    rm -rf ${image_tar}
  fi

  docker save ${image_path} -o ${image_tar}
}

usage() {
  echo "usage: $0 {version_tag} {repo_file_path} {pip_index_url}"
}

case "$2" in
usage)
  usage
  ;;
*)
  build
  packaging
  ;;
esac
This is a demo project for the Pmod GYRO made by Digilent. The X, Y and Z components of the angular velocity are measured and displayed on the Serial monitor. To control the Pmod, an Arduino UNO is used, which also sends the data to the computer. To communicate with the peripheral device, I2C communication protocol is used, which is made simpler by the usage of the L3G4200D Arduino Library. Measurements are integrated to get the deviations from the initial position, then displayed with the help of the serial plotter.
Fritzing file displaying the connection of the Pmod GYRO to the Arduino Uno.
Fritzing image displaying the connection between the Pmod GYRO and Arduino Uno.
Using this code will display the 3 components (pitch, roll and yaw) of the data measured by the gyroscope with the serial plotter.Should the introduction of a thesis have figures/pictures?
I'm writing my master thesis in network formation theory. I believe that a picture with network nodes in the introduction will help the readers understand what my model is and what I am trying to prove. I doubt most readers would read past the introduction anyway so if they do not understand the introduction then that would be a big problem for me.
Is that advisable or not? What if I am using the introduction as the writing sample for my PhD application?
I can't think of any reason in general that you should not do this if it makes sense in the context of the paper. If you can express the underlying concept better with a figure then it is better than to use words.
But an advisor might disagree, in the context of this paper. And an editor or reviewer of the paper might disagree. In that case, change it.
But the paper is yours. Do what you thing makes the most sense and makes the paper accessible to your audience.
Generally speaking, in scientific papers, it is best to avoid figures and tables in the introduction unless it provides an outlook to the goals and design of the study. If it is from a previous study just cite the original source. Figures and tables other than outlook are usually included in data/methods, results, or discussion, but not in abstract or intro. For thesis, the story is different. Introduction of a thesis can sometimes be even a review paper you have published in the past, so figures, tables, videos, etc are all fine unless your school specifies otherwise.
I'd expect at least a couple of figures in the introduction of a master's thesis, more in a doctoral thesis. In either case, in some ways, the more the better, as long as they are genuinely relevant and add to the power of the explanation.
For papers you rarely see much beyond a single panel connected with the introduction, laying out the premise of the main model/approach - either a single panel intro figure, or one panel in the first multi-panel data figure. Be aware that journals might limit the number of tables/figures in a paper.
Not the answer you're looking for? Browse other questions tagged thesis introduction network-analysis or ask your own question.

Batumi: Magical Christmas Tour
Discover a wide variety of Georgian festive traditions and customs as you explore the city of Batumi, otherwise known as the Las Vegas of the Dead…
Batumi: City Highlights & Batumi Boulevard Walking Tour
Discover the charming city of Batumi on the coast of the Black Sea on this 3-hour walking tour of its main attractions. Get a thorough and fun…
From Batumi: Cycling And Kayaking in Kolkheti National Park
Experience the incredible scenery of Kolkheti National Park with a combo cycle and kayak activity.
Adjara: Batumi Botanical Garden & Mtirala National Park
Experience the beauty of the Adjara region, with its unique nature, breathtaking views, and great Botanical Garden. You will visit not only the…
From Batumi: Gonio Castle and Adjarian Highland Tour
Visit Gonio castle and the wider Adjara region of Georgia with its subtropical climate, emerald-green forests, gardens, mountains, and waterfalls.
BatumiSee all 5 tickets & tours
Attractions in Batumi
More Activities in Batumi
Other Sightseeing Options in Batumi
Want to discover all there is to do in Batumi? Click here for a full list.This section describes hardware that is specific for use within RepliMark and which is