Skip to content

Commit cd33786

Browse files
committed
Refactor for setup.py
1 parent bac7aa8 commit cd33786

14 files changed

Lines changed: 67 additions & 10 deletions

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Transfer Matrix Method implementation & RefractiveIndex.info database (2015-
33

44
## Installation & Basic Usage
55
By default the RefractiveIndex module thinks that it is installed side-by-side with the RefractiveIndex.info database:
6-
6+
77
.
88
+-- _PyTMM
99
| +-- refractiveIndex.py
@@ -21,7 +21,7 @@ In this case, the database can be used as follows:
2121

2222
If your folder structure is different, you just need to specify the path to the RefractiveIndex database:
2323

24-
catalog = RefractiveIndex("./path/to/folder/with/RefractiveIndex/databae")
24+
catalog = RefractiveIndex("./path/to/folder/with/RefractiveIndex/database")
2525
mat = catalog.getMaterial('main', 'Si', 'Aspnes')
2626
n = mat.getRefractiveIndex(500)) # wavelength in nanometers
2727

@@ -30,11 +30,11 @@ Examples of using the transferMatrix module can be found in
3030

3131
.
3232
+-- _PyTMM
33-
| +-- _tests
33+
| +-- tests
3434
| +-- transferMatrix_tests.py
3535

3636

37-
###Dependencies
37+
## Dependencies
3838
- numpy
3939
- scipy
4040
- pyyaml

__init__.py

Lines changed: 0 additions & 1 deletion
This file was deleted.

pytmm/__init__.py

Whitespace-only changes.

pytmm/examples/__init__.py

Whitespace-only changes.
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import numpy as np
22
import matplotlib.pyplot as plt
3-
from transferMatrix import *
3+
4+
from pytmm.transferMatrix import *
45
from refractiveIndex import *
56

67
n1 = 1.5
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import numpy as np
22
import matplotlib.pyplot as plt
3-
from transferMatrix import *
3+
4+
from pytmm.transferMatrix import *
45
from refractiveIndex import *
56

67
n = 2

pytmm/tests/__init__.py

Whitespace-only changes.
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818

1919

2020
from unittest import TestCase
21-
from refractiveIndex import *
21+
22+
from pytmm.refractiveIndex import *
2223

2324

2425
class TestRefractiveIndex(TestCase):

0 commit comments

Comments
 (0)