move to a more standard directory structure

This commit is contained in:
Tom Hodson 2022-06-17 12:41:41 +02:00
parent d2258ae35c
commit b2e3449ff2
31 changed files with 12 additions and 11 deletions

View File

@ -60,13 +60,12 @@ jupyter lab
├── CITATION.cff # This file describes how to cite the work contained in this repository.
├── LICENSE # Outlines what legal rights you have to use this software.
├── README.md # You are here!
├── code
│   ├── README.md # Human readable information about the little python package in here
│   ├── pyproject.toml # Machine readable information about that same package
│   ├── setup.cfg # Tells Pip how to install this package
│   ├── src
│   │   └── MCFF # The actual code lives in here!
│   └── tests # automated tests for the code
├── README.md # Human readable information about the little python package in here
├── pyproject.toml # Machine readable information about that same package
├── setup.cfg # Tells Pip how to install this package
├── src
|   └── MCFF # The actual code lives in here!
└─ tests # automated tests for the code
└── learning # Supporting documentation
```

View File

View File

Before

Width:  |  Height:  |  Size: 55 KiB

After

Width:  |  Height:  |  Size: 55 KiB

View File

Before

Width:  |  Height:  |  Size: 125 KiB

After

Width:  |  Height:  |  Size: 125 KiB

View File

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

View File

@ -13,7 +13,7 @@ build:
# Build documentation in the docs/ directory with Sphinx
sphinx:
configuration: code/docs/conf.py
configuration: docs/conf.py
# If using Sphinx, optionally build your docs in additional formats such as PDF
# formats:
@ -23,6 +23,6 @@ sphinx:
python:
install:
- requirements: requirements.txt
- requirements: code/docs/requirements.txt
- requirements: docs/requirements.txt
- method: pip
path: code/
path: .

View File

@ -10,7 +10,9 @@ all_up = np.ones([100, 100])
all_down = -np.ones([100, 100])
random = np.random.choice([-1, 1], size=(100, 100))
custom = (
1 - 2 * imread(Path(__file__).parents[2] / "learning/data/test_state.png")[:, :, 0]
1
- 2
* imread(Path(__file__).parents[1] / "docs/learning/data/test_state.png")[:, :, 0]
) # load a 100x100 png, take the red channel, remap 0,1 to -1,1
states = [all_up, all_down, random, custom]