-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #70 from LemurPwned/hotfix/submodules
Hotfix/submodules
- Loading branch information
Showing
13 changed files
with
358 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
*.jpg | ||
*.png | ||
deprecated/ | ||
build/ | ||
scratch/ | ||
*.egg-info/ | ||
__pycache__/ | ||
*.pyc | ||
*.pyo | ||
*.pyd | ||
*.so | ||
.eggs/ | ||
.ipynb_checkpoints/ | ||
.vscode/ | ||
.idea/ | ||
assets/ | ||
articles/ | ||
examples/ | ||
docs/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
include cmtj/__init__.pyi | ||
include cmtj/py.typed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
from typing import Dict, List, Tuple | ||
|
||
import cmtj | ||
|
||
class LLGBJunction: | ||
def __init__(self, layers: List[LLGBLayer]) -> None: ... | ||
def clearLog(self) -> None: ... | ||
def getLog(self) -> Dict[str, List[float]]: ... | ||
def runSimulation( | ||
self, | ||
totalTime: float, | ||
timeStep: float = ..., | ||
writeFrequency: float = ..., | ||
log: bool = ..., | ||
solverMode: cmtj.SolverMode = ..., | ||
) -> None: ... | ||
def saveLogs(self, arg0: str) -> None: ... | ||
def setLayerExternalFieldDriver( | ||
self, arg0: str, arg1: cmtj.AxialDriver | ||
) -> None: ... | ||
def setLayerTemperatureDriver(self, arg0: str, arg1: cmtj.ScalarDriver) -> None: ... | ||
|
||
class LLGBLayer: | ||
def __init__( | ||
self, | ||
id: str, | ||
mag: cmtj.CVector, | ||
anis: cmtj.CVector, | ||
Ms: float, | ||
thickness: float, | ||
cellSurface: float, | ||
demagTensor: List[cmtj.CVector], | ||
damping: float, | ||
Tc: float, | ||
susceptibility: float, | ||
me: float, | ||
) -> None: ... | ||
def setAnisotropyDriver(self, arg0: cmtj.ScalarDriver) -> None: ... | ||
def setExternalFieldDriver(self, arg0: cmtj.AxialDriver) -> None: ... | ||
def setTemperatureDriver(self, arg0: cmtj.ScalarDriver) -> None: ... | ||
|
||
def MFAWeissCurie( | ||
me: float, | ||
T: float, | ||
J0: float, | ||
relax: float = ..., | ||
tolerance: float = ..., | ||
maxIter: int = ..., | ||
) -> Tuple[float, float]: ... | ||
def langevin(arg0: float) -> float: ... | ||
def langevinDerivative(arg0: float) -> float: ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
FROM python:3.9 | ||
|
||
# let's copy all the necessary files | ||
# we install our only 2 dependencies :) and vim for nice workflow | ||
RUN apt-get update && \ | ||
apt-get install -y build-essential libfftw3-dev git python3 python3-pip vim | ||
RUN python3 -m pip install --upgrade pip | ||
WORKDIR /scratch | ||
|
||
COPY setup.py /scratch | ||
COPY setup.cfg /scratch | ||
COPY python /scratch/python | ||
COPY core /scratch/core | ||
COPY third_party /scratch/third_party | ||
COPY cmtj /scratch/cmtj | ||
|
||
RUN python3 -m setup bdist_wheel && \ | ||
python3 -m pip install dist/*.whl numpy scipy tqdm | ||
|
||
WORKDIR /app | ||
RUN python3 -c "import cmtj; from cmtj.utils import FieldScan" && \ | ||
python3 -c "import cmtj; from cmtj import Layer" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.