From 6763bbc64cad9d5c7d4cf294f287e549fea9511e Mon Sep 17 00:00:00 2001 From: Eric Teunis de Boone Date: Mon, 27 Jun 2022 16:23:19 +0200 Subject: [PATCH] Move lib out of ./simulations --- README.md | 10 ++++++++++ {simulations/lib => lib}/__init__.py | 0 {simulations/lib => lib}/location/__init__.py | 0 {simulations/lib => lib}/location/antenna.py | 0 {simulations/lib => lib}/location/example.py | 0 {simulations/lib => lib}/location/location.py | 0 {simulations/lib => lib}/sampling/__init__.py | 0 {simulations/lib => lib}/sampling/digitizer.py | 0 {simulations/lib => lib}/sampling/sampler.py | 0 {simulations/lib => lib}/sampling/sampling.py | 0 {simulations/lib => lib}/signals/__init__.py | 0 {simulations/lib => lib}/signals/digitisedsignal.py | 0 {simulations/lib => lib}/signals/signal.py | 0 {simulations/lib => lib}/util.py | 0 14 files changed, 10 insertions(+) rename {simulations/lib => lib}/__init__.py (100%) rename {simulations/lib => lib}/location/__init__.py (100%) rename {simulations/lib => lib}/location/antenna.py (100%) rename {simulations/lib => lib}/location/example.py (100%) rename {simulations/lib => lib}/location/location.py (100%) rename {simulations/lib => lib}/sampling/__init__.py (100%) rename {simulations/lib => lib}/sampling/digitizer.py (100%) rename {simulations/lib => lib}/sampling/sampler.py (100%) rename {simulations/lib => lib}/sampling/sampling.py (100%) rename {simulations/lib => lib}/signals/__init__.py (100%) rename {simulations/lib => lib}/signals/digitisedsignal.py (100%) rename {simulations/lib => lib}/signals/signal.py (100%) rename {simulations/lib => lib}/util.py (100%) diff --git a/README.md b/README.md index e0667a5..d318170 100644 --- a/README.md +++ b/README.md @@ -5,3 +5,13 @@ Introductory work for my Master's Internship at HEP, organised in Jupyter Notebo Topics: * [Fourier Transforms](./fourier) * [Antenna Simulations](./simulations) + +[`lib`](./lib) contains a library. +\ +Notebooks can pick it up by using +```python +import os +import sys +# Append parent directory to import path so refcurve can be found +sys.path.append(os.path.dirname(os.path.abspath(os.getcwd()))) +``` diff --git a/simulations/lib/__init__.py b/lib/__init__.py similarity index 100% rename from simulations/lib/__init__.py rename to lib/__init__.py diff --git a/simulations/lib/location/__init__.py b/lib/location/__init__.py similarity index 100% rename from simulations/lib/location/__init__.py rename to lib/location/__init__.py diff --git a/simulations/lib/location/antenna.py b/lib/location/antenna.py similarity index 100% rename from simulations/lib/location/antenna.py rename to lib/location/antenna.py diff --git a/simulations/lib/location/example.py b/lib/location/example.py similarity index 100% rename from simulations/lib/location/example.py rename to lib/location/example.py diff --git a/simulations/lib/location/location.py b/lib/location/location.py similarity index 100% rename from simulations/lib/location/location.py rename to lib/location/location.py diff --git a/simulations/lib/sampling/__init__.py b/lib/sampling/__init__.py similarity index 100% rename from simulations/lib/sampling/__init__.py rename to lib/sampling/__init__.py diff --git a/simulations/lib/sampling/digitizer.py b/lib/sampling/digitizer.py similarity index 100% rename from simulations/lib/sampling/digitizer.py rename to lib/sampling/digitizer.py diff --git a/simulations/lib/sampling/sampler.py b/lib/sampling/sampler.py similarity index 100% rename from simulations/lib/sampling/sampler.py rename to lib/sampling/sampler.py diff --git a/simulations/lib/sampling/sampling.py b/lib/sampling/sampling.py similarity index 100% rename from simulations/lib/sampling/sampling.py rename to lib/sampling/sampling.py diff --git a/simulations/lib/signals/__init__.py b/lib/signals/__init__.py similarity index 100% rename from simulations/lib/signals/__init__.py rename to lib/signals/__init__.py diff --git a/simulations/lib/signals/digitisedsignal.py b/lib/signals/digitisedsignal.py similarity index 100% rename from simulations/lib/signals/digitisedsignal.py rename to lib/signals/digitisedsignal.py diff --git a/simulations/lib/signals/signal.py b/lib/signals/signal.py similarity index 100% rename from simulations/lib/signals/signal.py rename to lib/signals/signal.py diff --git a/simulations/lib/util.py b/lib/util.py similarity index 100% rename from simulations/lib/util.py rename to lib/util.py