:index:`MP4`: DTFT
########################

This MP is about designing ideal filters, and practical filters
(textbook chapter 8). 

* `mp4.zip <mp/mp4.zip>`_ contains the code.
    * Download the code and unzip it into some directory.
    * Follow the directions at the top of `mp4_notebook.html <mp/mp4_notebook.html>`_ in order to install the [MNE](https://mne.tools/stable/index.html) package, and to activate it.
    * Type `jupyter lab`, then click on `mp4_notebook.ipynb` to start debugging.
    * Edit `submitted.py` as needed to get the notebook working.
    * Go to a terminal, and type `python grade.py` to test-grade your code.
    * When it works on your machine, then you can try uploading **only** the file ``submitted.py`` to the MP4 assignment on Gradescope.

Extra Credit
--------------

* `mp4_extra.zip <mp/mp4_extra.zip>`_ is the extra credit assignment.
  This adds one more file for you to work on (``extra.py``), and one more
  visible test file (``tests/test_extra.py``) with its accompanying
  solutions file (``extra_solutions.hdf5``).
* When you've finished revising ``extra.py``, you can test it on your
  machine by running ``python grade.py``.
* When it works on your machine, upload **only** the file ``extra.py``
  to the ``MP4 Extra Credit`` assignment on Gradescope.