forked from siddharth-maddali/Phaser
-
Notifications
You must be signed in to change notification settings - Fork 1
/
SF.py
27 lines (24 loc) · 789 Bytes
/
SF.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
###########################################################
#
# SF.py:
# Plugin for solvent flipping
#
# Siddharth Maddali
# Argonne National Laboratory
# January 2020
#
###########################################################
from tqdm import tqdm
class Mixin:
def SF( self, num_iterations, show_progress=False ):
if show_progress:
allIterations = tqdm( list( range( num_iterations ) ), desc=' SF' )
else:
allIterations = list( range( num_iterations ) )
for i in allIterations:
self._SupReflect()
self._ModProject()
self._UpdateError()
self._SupProject() # project one last time into the support space
return