Skip to content

Check all files (important!) #2

Description

@dboonz

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:

defmy_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 """<---thisistheendofthedocstringpass

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions