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