Skip to content

Commit

Permalink
Merge pull request #31 from caballeto/Vinay_dev
Browse files Browse the repository at this point in the history
Fixing typos in documentation and experiments.
  • Loading branch information
7andahalf committed Mar 3, 2019
2 parents f772e26 + da78bef commit 4b6ccca
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions directdemod/chunker.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def get(self, name, init = None):
init (:obj:`anything`): initialize variable to this, if undefined previously
Returns:
:obj:`aything`: value of variable
:obj:`anything`: value of variable
'''

if init is None:
Expand All @@ -81,4 +81,4 @@ def get(self, name, init = None):
return self.__vars[name]
except:
self.__vars[name] = init
return self.__vars[name]
return self.__vars[name]
6 changes: 3 additions & 3 deletions directdemod/demod_am.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def demod(self, sig):
'''AM demodulation by hilbert's transform
Args:
sig (:obj:`numpy array`): Signal array to be demdodulated
sig (:obj:`numpy array`): Signal array to be demodulated
Returns:
:obj:`numpy array`: Demodulated signal
Expand Down Expand Up @@ -53,10 +53,10 @@ def demod(self, sig):
'''AM demodulation by low pass filter
Args:
sig (:obj:`numpy array`): Signal array to be demdodulated
sig (:obj:`numpy array`): Signal array to be demodulated
Returns:
:obj:`numpy array`: Demodulated signal
'''

return self.__filter.applyOn(np.abs(sig))
return self.__filter.applyOn(np.abs(sig))
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"collapsed": true
},
"source": [
"## Experiment 1 - Memory effeciency of commSignal"
"## Experiment 1 - Memory efficiency of commSignal"
]
},
{
Expand All @@ -20,7 +20,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"The goal of this experiment is to verify that the commSignal object is memory effecient. Ineffencies may occur when the internal signal storage is copied everytime it is being used. To verify that the same array is being used the following functions are defined, courtesy of [1]"
"The goal of this experiment is to verify that the commSignal object is memory efficient. Inefficiencies may occur when the internal signal storage is copied everytime it is being used. To verify that the same array is being used the following functions are defined, courtesy of [1]"
]
},
{
Expand Down Expand Up @@ -150,7 +150,7 @@
"metadata": {},
"source": [
"### Conclusions\n",
"We conclude that when we return the signal array, it is not being copied again hence the object is memory effecient."
"We conclude that when we return the signal array, it is not being copied again hence the object is memory efficient."
]
}
],
Expand All @@ -170,7 +170,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.1"
"version": "3.7.1"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 4b6ccca

Please sign in to comment.