Skip to content

Commit

Permalink
Added class docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
JP-Carr committed Apr 19, 2020
1 parent eadfcd3 commit 42c452f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions potential_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
from error import error

class potential:
"""
Describes the potential field that forms part of the quantum system for
which a wavefunction is calculated
"""
def __init__(self,steps,form="SW"):
"""
Initialises potential field and generates potential array
Expand Down
4 changes: 4 additions & 0 deletions quantum_particle.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@


class q_particle:
"""
Describes the particles that forms part of the quantum system for which
a wavefunction is calculated, using the Numerov method
"""
def __init__(self,trial_energy,well_depth,length,steps,start_position=0,mass=const.m_e):
"""
Initialises a particle
Expand Down

0 comments on commit 42c452f

Please sign in to comment.