Skip to content

This repository contains the scripts of the lab of Osip Schwartz. it does not include the specific simulations of Kali regarding p

Notifications You must be signed in to change notification settings

mkali-weizmann/os-lab

Repository files navigation

os-lab

This repository contains the scripts of the lab of Osip Schwartz. it does not include the specific simulations of Kali regarding p

How to work with data files:

Here I assume all data files are in our group's Dropbox

  • go to local_config.py file and set there the local path to the group's Dropbox on your computer, where data should sit, like so:
    DATA_PATH = r"C:\Users\michaeka\Dropbox (Weizmann Institute)\Lab's Dropbox"
  • Whenever wanting to read or write data, you can access it like so:
import os
from local_config import DATA_PATH
import pandas as pd

specific_file_path = os.path.join(DATA_PATH, r"EMNV\Ring down\270624\ring_down_curve_parameters.xlsx")

pd.read_excel(specific_file_path)

How to install on new computers:

If you don't have a github user already - open one.

download git from here: https://git-scm.com/download/win (use default settings everywhere: next, next, next...)

Open the git Gui and clone the repository to a local path of your choice on your computer: image The path to the repository that is in the image should be the link to the github page of this repository: https://github.com/mkali-weizmann/os-lab

Go to pycharm and open the to which you cloned the git project as a new project: image

He will suggest you to open a venv enviorenment for the project. If your local folder is in a cloud service such as Dropbox or Google Drive, it is recommend that you change the suggested path in the first row to another path which sits outside of the cloud folder. The reason for this it that there will be many automatically generated files in the venv, which we don't want the cloud service to constantly upload and download we we work on the project. image

  • Note: Do not work on the same shared folder together - if you work on the same shared folder your code will be ran over by someone else before you commited it, and changes will be lost. It is fine if your folder is in a cloud storage service, but there should be a different folder for each pesron to work with it.

In the requirements.txt file all the python packages that are required for the project are specified. Pycharm will detect them and offer to install them for you. If it failed, you can download them manually using pip. It is important that you do it through the Pycharm terminal, as you want those packages to be installed in the venv directory, and using the pycharm's terminal guarantees it.

to do so, go to the terminal window in pycharm and install the packages, specifying the version that appears in the requirements file. Here is an example of installing a specific version of matplotlib (typing 'pip install -v "matplotlib==3.9.2"' into the terminal and then pressing enter):

image

How to add people to the project:

image

How to ignore big data files in the project (ignore = don't track and don't upload them with git):

add them to the .gitignore text file: image

I think that's it for now.

You are welcome to add here any instructions of usage to any part of the code for other people to use as well.

How to connect to Teledyne cameras with python (curr)

About

This repository contains the scripts of the lab of Osip Schwartz. it does not include the specific simulations of Kali regarding p

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •