Skip to content

Commit

Permalink
Changed the python class names to be CamelCase
Browse files Browse the repository at this point in the history
This is a python naming convention...
Adapated the Tutorials accordingly.
  • Loading branch information
Patrick Quoika committed Feb 2, 2024
1 parent 51bafd3 commit d8af3d6
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
10 changes: 5 additions & 5 deletions examples/XEntropy-example0-kde.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"metadata": {},
"outputs": [],
"source": [
"kernel = kde.kde(data=data,verbose=True)\n",
"kernel = kde.Kde(data=data,verbose=True)\n",
"xs, ys = kernel.pdf_x,kernel.pdf"
]
},
Expand Down Expand Up @@ -147,7 +147,7 @@
"metadata": {},
"outputs": [],
"source": [
"kernel = kde.kde(data=data,verbose=True)\n",
"kernel = kde.Kde(data=data,verbose=True)\n",
"xs, ys = kernel.pdf_x,kernel.pdf"
]
},
Expand Down Expand Up @@ -222,7 +222,7 @@
"metadata": {},
"outputs": [],
"source": [
"kernel = kde.kde(data=data,weights=weights,verbose=True)\n",
"kernel = kde.Kde(data=data,weights=weights,verbose=True)\n",
"\n",
"kernel.has_weights"
]
Expand Down Expand Up @@ -302,7 +302,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
Expand All @@ -316,7 +316,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.3"
"version": "3.9.7"
},
"toc": {
"base_numbering": 1,
Expand Down
14 changes: 7 additions & 7 deletions examples/XEntropy-example1-dihedral_entropy.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"metadata": {},
"outputs": [],
"source": [
"dih_ent = dihedrals.dihedralEntropy(data=data,verbose=True)\n",
"dih_ent = dihedrals.DihedralEntropy(data=data,verbose=True)\n",
"dih_ent.calculate()"
]
},
Expand Down Expand Up @@ -141,7 +141,7 @@
"metadata": {},
"outputs": [],
"source": [
"dih_ent = dihedrals.dihedralEntropy(data=data,verbose=True,input_unit=\"degree\")\n",
"dih_ent = dihedrals.DihedralEntropy(data=data,verbose=True,input_unit=\"degree\")\n",
"\n",
"dih_ent.calculate()"
]
Expand Down Expand Up @@ -225,7 +225,7 @@
"metadata": {},
"outputs": [],
"source": [
"dih_ent = dihedrals.dihedralEntropy(data=data, verbose=False, input_unit=\"degree\")\n",
"dih_ent = dihedrals.DihedralEntropy(data=data, verbose=False, input_unit=\"degree\")\n",
"\n",
"dih_ent.calculate()"
]
Expand Down Expand Up @@ -309,7 +309,7 @@
"metadata": {},
"outputs": [],
"source": [
"dih_ent = dihedrals.dihedralEntropy(data=data, verbose=False, input_unit=\"degree\")\n",
"dih_ent = dihedrals.DihedralEntropy(data=data, verbose=False, input_unit=\"degree\")\n",
"\n",
"dih_ent.calculate()"
]
Expand Down Expand Up @@ -406,7 +406,7 @@
"metadata": {},
"outputs": [],
"source": [
"dih_ent = dihedrals.dihedralEntropy(data=data, verbose=False, input_unit=\"degree\")\n",
"dih_ent = dihedrals.DihedralEntropy(data=data, verbose=False, input_unit=\"degree\")\n",
"\n",
"dih_ent.calculate()"
]
Expand Down Expand Up @@ -453,7 +453,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
Expand All @@ -467,7 +467,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.5"
"version": "3.9.7"
},
"toc": {
"base_numbering": 1,
Expand Down
2 changes: 1 addition & 1 deletion package/xentropy/dihedrals.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import warnings


class dihedralEntropy(object):
class DihedralEntropy(object):

def __init__(self, data, weights=None, resolution="auto", verbose=False, method="Simpson", input_unit="auto"):
# flags and output
Expand Down
2 changes: 1 addition & 1 deletion package/xentropy/kde.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def check_dims(data):
"data: {}".format(data.shape)
raise ValueError(err_msg)

class kde(object):
class Kde(object):

def __init__(self, data, weights=None, resolution="auto", verbose=False):
# to be set after calculation
Expand Down

0 comments on commit d8af3d6

Please sign in to comment.