Logo Samuel Jankovych
  • Home
  • About
  • Publications
  • Talks and Conferences
  • Education
  • Experiences
  • More
    Awards and Grants Skills Projects
  • Posts
  • Dark Theme
    Light Theme Dark Theme System Theme
Logo Inverted Logo
  • Posts
  • Nikhef Stoomboot
  • ATLAS hacks
  • Athena
  • TBrowser in Docker
  • MFF UK GPULab
  • Programovanie pre fyzikov
  • Arch Linux
Hero Image
Programovanie pre fyzikov

Vojtova webstránka: ipnp.cz/?page_id=8042&lang=CZ Prezentácia Prezentácia a príklady v Jupyter notebooku: prop_chyb.ipynb Príklady Príklady od Vojtecha k propagácii chýb: uncertainty_propagation_examples.py Skript z minulého cvičenia (iba na import plot funkcie): fits_examples.py Odporúčané predmety Základy programovania Použití počítačů ve fyzice NOFY084 - praktické fyzikálne príkady, vhodné na zlepšenie rutiny programovania (v Pythone), KZ za úlohy Programování a zpracování dat v Pythonu NOFY178 - vyššia úroveň programovania v Pythone (triedy, dekorátory,…), vhodné na zlepšenie dizajnu kódu, KZ za úlohy Strojové učenie (AI) Strojové učení v částicové fyzice NJSF164 - základy hlbokého učenia formou príkladov, vhodné aj pre začiatočnikov strojového učenia, moderné techniky AI, vhodné pre všetkých (nielen časticová fyzika), Zk za úkoly Úvod do strojového učení v Pythonu NPFL129 - strojové učenie, príklady+teória, náročejšie, témy do hĺbky, nie moderné techniky AI (skorej klasické), Zk písomná, Z za úlohy, viac info Hluboké učení NPFL138 - hlboké učenie, príklady+teória, náročné, témy do hĺbky, najmodernejšie techniky AI, Z za úlohy, Zk písomná alebo v prípade splnenia všetkých úloh rovno za 1, viac info Some random link

    Sunday, December 8, 2024 | 1 minute Read
    Hero Image
    ATLAS hacks

    Preparing plots for ATLAS publication All ATLAS plots used for the circulation inside the collaboration must have the “ATLAS Internal” label if you use data or “ATLAS Simulation Internal” if you use only simulation. However, when preparing plots for publication outside the collaboration, the label “Internal” must be removed for papers, replaced with “Preliminary” for CONF or PUB notes, or replaced with “Work in progress” for thesis/regional conferences. Instead of manually recreating all PDF plots, where you only change the label, you can use the following code to automate the process for an existing PDF plot.

      Wednesday, November 16, 2022 | 1 minute Read
      Hero Image
      Nikhef Stoomboot

      Nikhef Stoomboot tips and tricks Copying from /eos Use the following to copy from /eos in interactive session (good for small data): setupATLAS lsetup xrootd lsetup xcache voms-proxy-info -all xrdcp --streams=4 --parallel=8 -r root://eosatlas.cern.ch//eos/atlas/atlaslocalgroupdisk/higgs/HHbbtautau/Run2Run3/EasyJetNTuples/Prod_v7_merged/HadHad /dcache/atlas/sjankovy/HHbbtautau/Prod_v7_merged Setup for submitting jobs to copy from /eos Prerequisites. Run these in terminal: setupATLAS lsetup rucio mkdir ~/.globus/proxies voms-proxy-init -voms atlas -valid 192:00 -out ~/.globus/proxies/x509proxy Be aware that the proxy is valid only for limited time (192 hours in this case), but the jobs can’t run longer than that anyway. You might need to resubmit the jobs after the jobs reach maximum runtime.

        Sunday, September 18, 2022 | 2 minutes Read
        Hero Image
        Running DAOD production with Athena

        Prerequisites Get a CERN login. Generate a Kerberos authentication ticket using the command and type your password when prompted: kinit Check if the ticket is generated using: klist klist -f Create a fork of the Athena repository. THE PROJECT NAME MUST BE AS THE ORIGINAL: athena. Setup a working environment ssh to lxplus or other CERN machine. Setup the environment: setupATLAS lsetup git Setup the git-atlas (change sjankovy to your username): git atlas init-config sjankovy --apply Check if the configuration is correct with git atlas init-config.

          Sunday, September 18, 2022 | 1 minute Read
          Hero Image
          Setup Arch Linux VM with QEMU

          Arch Linux Installation Download the ISO image Download the latest Arch Linux ISO from here. Create empty disk image Create the empty file with filled zeros of size 64GB: dd if=/dev/zero of=bios.img bs=2G count=32 Boot the ISO image Make sure to have the OVMF package installed: pacman -S ovmf This package contains the UEFI firmware for QEMU. Copy the UEFI firmware to the current directory: cp /usr/share/edk2/x64/OVMF_VARS.fd . Boot the ISO image with QEMU:

            Sunday, September 18, 2022 | 7 minutes Read
            Hero Image
            Setup MFF UK GPULab

            Prerequisites Get a CAS login. Login to gpulab using CAS login, follow this guide. Charliecloud image Log into a gpu node srun -p gpu-ffa --gpus=1 --time=5:00:00 --pty bash Pull nvidia docker image with Charliecloud ch-image pull tensorflow/tensorflow:latest-gpu Convert the docker image to charliecloud image expressed as a directory ./my-tf ch-convert -i ch-image -o dir tensorflow/tensorflow:latest-gpu ./my-tf Import CUDA libraries ch-fromhost --nvidia ./my-tf Launch the container ch-run -w -c /home/jankovys --bind=/home/jankovys -u 0 -g 0 ./my-tf -- bash The command above will launch the container with working directory /home/jankovys and write access to the container (-w). The --bind=/home/jankovys option will bind the /home/jankovys directory on the host to the /home/jankovys directory in the container. The -u 0 -g 0 options will run the container as root user. The -- at the end of the command tells ch-run that the command to run in the container follows.

              Sunday, September 18, 2022 | 3 minutes Read
              Hero Image
              TBrowser in docker container

              Set up Install Docker Pull the ROOT (rootproject/root:6.26.06-ubuntu22.04) docker image: docker pull rootproject/root:6.26.06-ubuntu22.04 Run the docker image: docker run -p 9200:9200 --rm -d -it -v ~/host/dir:/container/dir --name TBrowser rootproject/root:6.26.06-ubuntu22.04 root -l --web=server:9200 /opt/root/tutorials/v7/browser.cxx -p 9200:9200 maps the port 9200 of the host to the port 9200 of the container --rm removes the container after it exits -d runs the container in the background -it runs the container in interactive mode -v ~/host/dir:/container/dir mounts the host directory ~/host/dir to the container directory /container/dir --name TBrowser names the container TBrowser rootproject/root:latest is the docker image root -l --web=server:9200 /opt/root/tutorials/v7/browser.cxx runs the ROOT TBrowser in the container Open a web browser and go to localhost:9200/win1 to see the TBrowser:

                Sunday, September 18, 2022 | 1 minute Read
                Navigation
                • About
                • Publications
                • Talks and Conferences
                • Education
                • Experiences
                • Awards and Grants
                • Skills
                • Projects
                Contact me:
                • samueljankovych@gmail.com
                • jansam123
                • +421950442667