Skip to content

Commit 46624bf

Browse files
authored
Merge pull request #103 from tldr-group/feature-vertical-flux
deleted unused variables
2 parents e9552d4 + bd6a245 commit 46624bf

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

.github/workflows/draft-pdf.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
# This should be the path to the paper within your repo.
1717
paper-path: paper.md
1818
- name: Upload
19-
uses: actions/upload-artifact@v1
19+
uses: actions/upload-artifact@v3
2020
with:
2121
name: paper
2222
# This is the output path where Pandoc will write the compiled

taufactor/taufactor.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,7 @@ def __init__(self, img, bc=(-0.5, 0.5), D_0=1, device=torch.device('cuda')):
4747
f'Input image must only contain 0s and 1s. Your image must be segmented to use this tool. If your image has been segmented, ensure your labels are 0 for non-conductive and 1 for conductive phase. Your image has the following labels: {torch.unique(img).numpy()}. If you have more than one conductive phase, use the multi-phase solver.')
4848

4949
# calculate
50-
self.ph_bot = torch.sum(img[:, -1]).to(self.device) * self.bot_bc
51-
self.ph_top = torch.sum(img[:, 0]).to(self.device) * self.top_bc
50+
5251
# init conc
5352
self.conc = self.init_conc(img)
5453
# create nn map
@@ -350,8 +349,7 @@ def __init__(self, img, cond={1: 1}, bc=(-0.5, 0.5), device=torch.device('cuda:0
350349
img = torch.tensor(img, dtype=self.precision, device=self.device)
351350

352351
# calculate
353-
self.ph_bot = torch.sum(img[:, -1]).to(self.device) * self.bot_bc
354-
self.ph_top = torch.sum(img[:, 0]).to(self.device) * self.top_bc
352+
355353
# init conc
356354
self.conc = self.init_conc(img)
357355
# create nn map

0 commit comments

Comments
 (0)