-
Notifications
You must be signed in to change notification settings - Fork 0
/
_FAQ.rst
40 lines (23 loc) · 2.12 KB
/
_FAQ.rst
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
.. index:: ! FAQ
.. _FAQ:
==========================
Frequently Asked Questions
==========================
This is a list of commonly asked questions concerning Bluesky.
.. _faq-obj-oriented:
#. How to install Bluesky?
Visit `Bluesky Installation <https://bcda-aps.github.io/bluesky_training/instrument/_install_new_instrument.html>`_
#. How to start a Bluesky session?
Visit `Getting started <https://bcda-aps.github.io/bluesky_training/tutor/_start_bluesky_session.html>`_
#. In python, what are classes, objects, methods and instances??
- A **class** is like a blueprint or a template that defines the characteristics and behaviors of a particular type of object. For example, we can define a `Dog` class that includes attributes such as breed, age, and name, as well as behaviors such as barking and wagging its tail.
- An **object** is an **instance** of a class. So, if we have a `Dog` class, we can create objects of that class, such as "Fido" and "Buddy". Each object of the `Dog` class will have its own set of **attributes**, such as "Fido" being a Golden Retriever and "Buddy" being a Chihuahua, and **methods**, such as "Fido" barking loudly and "Buddy" wagging its tail.
- An **instance** is a specific occurrence of an **object** created from a **class**. For example, with our `Dog` class, we can create an instance of that class called "my_dog" with specific attributes and behaviors.
- A **method** is a function that is defined in a **class** and can be called on an **object** of that class. For example, the "bark" method defined in the `Dog` class can be called on the object "my_dog" to make it bark.
For more details:
- `python.org tutorial <https://docs.python.org/3/tutorial/classes.html>`_
- `Learn to code <https://www.w3schools.com/python/python_classes.asp>`_
- `Naming convention <https://namingconvention.org/python/>`_
.. _faq-linux-tilde:
#. What does the (~) means in a path?
The tilde (~) character represents the current user's home directory. This is a shortcut that can be used to specify file paths without having to type out the entire path to the home directory.