Skip to content

Commit

Permalink
Merge pull request #101 from BranniganLab/100-requested-changes-to-at…
Browse files Browse the repository at this point in the history
…tribute-names

changed leaflet to leaflet_id
  • Loading branch information
JahmalEnnis authored Dec 6, 2024
2 parents cb8128d + f0a8097 commit b092917
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions python/Site.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class Site:
name : str
The name of this Site. e.g. "Binding site 1," "Left anterior cleft," or \
something else descriptive.
leaflet : int
leaflet_id : int
If 1, outer leaflet. If 2, inner leaflet.
temperature : float
The temperature of your system in K.
Expand Down Expand Up @@ -55,7 +55,7 @@ class Site:
The binding affinity of the lipid for the Site, in kcal/mol.
"""

def __init__(self, name, leaflet, temperature):
def __init__(self, name, leaflet_id, temperature):
"""
Create a Site object.
Expand All @@ -64,14 +64,14 @@ def __init__(self, name, leaflet, temperature):
name : str
The name of this Site. e.g. "Binding site 1," \
"Left anterior cleft," or something else descriptive.
leaflet : int
leaflet_id : int
If 1, outer leaflet. If 2, inner leaflet.
temperature : float
The temperature of your system in K.
"""
self.name = name
assert leaflet in [1, 2], "leaflet must be 1 or 2 (1 for outer leaflet or 2 for inner leaflet)"
self.leaflet = leaflet
assert leaflet_id in [1, 2], "leaflet_id must be 1 or 2 (1 for outer leaflet or 2 for inner leaflet)"
self.leaflet_id = leaflet_id
self.temperature = temperature
self._bin_coords = None
self._site_counts_histogram = None
Expand Down
2 changes: 1 addition & 1 deletion python/Symmetric_Site.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ def _make_symmetric_sites(self, base_site, Ntheta):
site_list = [base_site]
for site_number in range(1, self.symmetry):
site_name = base_site.name + '_' + str(site_number + 1)
new_site = Site(site_name, base_site.leaflet, base_site.temperature)
new_site = Site(site_name, base_site.leaflet_id, base_site.temperature)
new_site.bin_coords = self._rotate_bin_coords(base_site.bin_coords, Ntheta, site_number)
site_list.append(new_site)
return site_list
Expand Down

0 comments on commit b092917

Please sign in to comment.