Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check all files (important!) #2

Open
dboonz opened this issue Dec 6, 2022 · 0 comments
Open

Check all files (important!) #2

dboonz opened this issue Dec 6, 2022 · 0 comments
Assignees

Comments

@dboonz
Copy link
Member

dboonz commented Dec 6, 2022

These are all the files that we should check for documentation and other obvious mistakes. Please pick a file or a directory, mark it here as being taken care of and file an issue with a pull request so we can track that everything has been taken care of. Send @dboonz an email once you're done or write a note in the pull request if you need help.

The docstring should look like:

    def my_function(self, a, b, c=3):
        """ <--- this is the start of the docstring
        Update a based on b. (This is a one-line description)

        A longer explanation goes here maybe including examples and notes and caveats


        Parameters
        ----------
        a: np.ndarray
            the first argument. Should be between 1 and 2
        b: np.ndarray
            The second argument
        c:int
            Are you still reading this?

        Returns
        -------
        nothing
        """  <--- this is the endof the docstring
        pass

Pycharm users: File --> Settings --> Tools --> Python Integrated Tools and you'll spot it immediately. If you want to create a docstring, go to the line under the function definition, type three times ", then enter and it'll pop right up.

Visual studio: https://marketplace.visualstudio.com/items?itemName=njpwerner.autodocstring

    • ├───example_data
    • ├───example_scripts
    • │ exampleGridGenerator.py
    • │ exampleLoader.py
    • │ examplePreprocess.py
    • │ exampleReconstructionCPM.py
    • │ exampleReconstructionFPM.py
    • │ exampleReconstruction_pcPIE.py
    • │ preprocess_SHGdata.py
    • │ simulateData.py
    • │ simulateData_new.py
    • ├───fracpy.egg-info
    • │ dependency_links.txt
    • │ PKG-INFO
    • │ requires.txt
    • │ SOURCES.txt
    • │ top_level.txt
    • └───PtyLab
    • │ testall.py
    • init.py
    • ├───config
    • init.py
    • ├───Engines
    • │ │ aPIE.py
    • │ │ BaseEngine.py
    • │ │ e3PIE.py
    • │ │ ePIE.py
    • │ │ mPIE.py
    • │ │ mqNewton.py
    • │ │ multiPIE.py
    • │ │ pcPIE.py
    • │ │ qNewton.py
    • │ │ test_BaseEngine.py
    • │ │ zPIE.py
    • │ │ init.py
    • │ │
    • │ ├───test
    • │ │ test_baseReconstructor.py
    • │ │ test_ePIE.py
    • │ │ test_propagator.py
    • │ │ init.py
    • ├───ExperimentalData
    • │ │ ExperimentalData.py
    • │ │ init.py
    • │ │
    • │ ├───test
    • │ │ test_experimentalData.py
    • │ │ init.py
    • [ ]
    • ├───GridGeneration
    • │ FermatGridGenerator.py
    • init.py
    • ├───io
    • │ │ readExample.py
    • │ │ readHdf5.py
    • │ │ init.py
    • │ │
    • │ ├───test
    • │ │ test_example_loader.py
    • │ │ test_get_example_data_folder.py
    • │ │ test_loadInputData.py
    • │ │ init.py
    • [ ]
    • ├───Monitor
    • │ │ Monitor.py
    • │ │ Plots.py
    • │ │ README.md
    • │ │ TensorboardMonitor.py
    • │ │ test_TensorboardMonitor.py
    • │ │ init.py
    • │ │
    • │ ├───test
    • │ │ test_matplotlib_monitor.py
    • │ │ test_TensorboardMonitor.py
    • │ │ init.py
    • │ │
    • [ ]
    • ├───monitors
    • │ └───__pycache__
    • │ .gitignore
    • ├───Operators
    • │ │ Operators.py
    • │ │ README.md
    • │ │ test_Operators.py
    • │ │ _propagation_kernels.py
    • │ │ init.py
    • │ │
    • │ ├───test
    • │ │ test_operators.py
    • │ │ init.py
    • │ │
    • ├───Params
    • │ │ Params.py
    • │ │ init.py
    • ├───ProbeEngines
    • │ OPRP.py
    • │ StandardProbe.py
    • │ test_OPRP.py
    • │ test_StandardProbe.py
    • init.py
    • ├───Reconstruction
    • │ │ CalibrationFPM.py
    • │ │ Reconstruction.py
    • │ │ init.py
    • │ │
    • │ ├───test
    • │ │ test_optimizable.py
    • │ │ init.py
    • │ │
    • ├───Regularizers
    • init.py
    • ├───utils
    • │ │ alignment.py
    • │ │ gpuUtils.py
    • │ │ initializationFunctions.py
    • │ │ scanGrids.py
    • │ │ utils.py
    • │ │ visualisation.py
    • │ │ init.py
    • │ │
    • │ ├───test
    • │ │ test_complexPlot.py
    • │ │ test_fft2c_ifft2c.py
    • │ │ init.py
@dboonz dboonz assigned dboonz and MaisieD and unassigned dboonz Jan 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants