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

Tickets/dm-15684: Convert to numpydoc #106

Merged
merged 1 commit into from Jan 31, 2019
Merged

Tickets/dm-15684: Convert to numpydoc #106

merged 1 commit into from Jan 31, 2019

Conversation

isullivan
Copy link
Contributor

No description provided.

@isullivan isullivan force-pushed the tickets/DM-15684 branch 2 times, most recently from 9b3a7ea to e75520f Compare January 25, 2019 00:35
@jonathansick
Copy link
Member

@isullivan Thanks for picking this up!.

Just as a pre-review thing, there are a bunch of flake8 errors that Travis is finding (see above) and I'm also seeing a few warnings when building the docs myself (below). Do you need any advice on tracking down these fixes, or do you want to handle that first?

/Users/jsick/lsst/pipelines_lsst_io_stack/stacks/w_2019_02/python/miniconda3-4.5.4/envs/lsst-scipipe-fcd27eb/lib/python3.6/site-packages/numpydoc/docscrape.py:377: UserWarning: Unknown section Parameters: in the docstring of None in None.
  warn(msg)
/Users/jsick/lsst/pipelines_lsst_io_stack/stacks/w_2019_02/python/miniconda3-4.5.4/envs/lsst-scipipe-fcd27eb/lib/python3.6/site-packages/numpydoc/docscrape.py:377: UserWarning: Unknown section Return in the docstring of None in None.
  warn(msg)
/Users/jsick/lsst/pipelines_lsst_io_stack/stacks/w_2019_02/python/miniconda3-4.5.4/envs/lsst-scipipe-fcd27eb/lib/python3.6/site-packages/numpydoc/docscrape.py:377: UserWarning: Unknown section Parameters: in the docstring of <function BaseSourceSelectorTask.run at 0xb50e47d08> in /Users/jsick/lsst/pipelines_lsst_io_stack/stacks/w_2019_02/stack/miniconda3-4.5.4-fcd27eb/DarwinX86/meas_algorithms/16.0-21-g3d035912/python/lsst/meas/algorithms/sourceSelector.py.
  warn(msg)
/Users/jsick/lsst/pipelines_lsst_io_stack/stacks/w_2019_02/python/miniconda3-4.5.4/envs/lsst-scipipe-fcd27eb/lib/python3.6/site-packages/numpydoc/docscrape.py:377: UserWarning: Unknown section Return in the docstring of <function BaseSourceSelectorTask.run at 0xb50e47d08> in /Users/jsick/lsst/pipelines_lsst_io_stack/stacks/w_2019_02/stack/miniconda3-4.5.4-fcd27eb/DarwinX86/meas_algorithms/16.0-21-g3d035912/python/lsst/meas/algorithms/sourceSelector.py.
  warn(msg)
/Users/jsick/lsst/pipelines_lsst_io_stack/stacks/w_2019_02/python/miniconda3-4.5.4/envs/lsst-scipipe-fcd27eb/lib/python3.6/site-packages/numpydoc/docscrape.py:377: UserWarning: Unknown section Parameters: in the docstring of None in None.
  warn(msg)
/Users/jsick/lsst/pipelines_lsst_io_stack/stacks/w_2019_02/python/miniconda3-4.5.4/envs/lsst-scipipe-fcd27eb/lib/python3.6/site-packages/numpydoc/docscrape.py:377: UserWarning: Unknown section Return in the docstring of None in None.
  warn(msg)
/Users/jsick/lsst/pipelines_lsst_io_stack/stacks/w_2019_02/python/miniconda3-4.5.4/envs/lsst-scipipe-fcd27eb/lib/python3.6/site-packages/numpydoc/docscrape.py:377: UserWarning: Unknown section Parameters: in the docstring of <function BaseSourceSelectorTask.run at 0xb50e47d08> in /Users/jsick/lsst/pipelines_lsst_io_stack/stacks/w_2019_02/stack/miniconda3-4.5.4-fcd27eb/DarwinX86/meas_algorithms/16.0-21-g3d035912/python/lsst/meas/algorithms/sourceSelector.py.
  warn(msg)
/Users/jsick/lsst/pipelines_lsst_io_stack/stacks/w_2019_02/python/miniconda3-4.5.4/envs/lsst-scipipe-fcd27eb/lib/python3.6/site-packages/numpydoc/docscrape.py:377: UserWarning: Unknown section Return in the docstring of <function BaseSourceSelectorTask.run at 0xb50e47d08> in /Users/jsick/lsst/pipelines_lsst_io_stack/stacks/w_2019_02/stack/miniconda3-4.5.4-fcd27eb/DarwinX86/meas_algorithms/16.0-21-g3d035912/python/lsst/meas/algorithms/sourceSelector.py.
  warn(msg)
reading sources... [100%] py-api/lsst.ip.diffim.writeKernelCellSet
/Users/jsick/lsst/pipelines_lsst_io_stack/stacks/w_2019_02/stack/miniconda3-4.5.4-fcd27eb/DarwinX86/pex_config/16.0-9-ga1e4bcb/python/lsst/pex/config/config.py:docstring of lsst.ip.diffim.ClassificationDipoleConfig.compare:12: WARNING: Unexpected indentation.
/Users/jsick/lsst/pipelines_lsst_io_stack/stacks/w_2019_02/stack/miniconda3-4.5.4-fcd27eb/DarwinX86/pex_config/16.0-9-ga1e4bcb/python/lsst/pex/config/config.py:docstring of lsst.ip.diffim.ClassificationDipoleConfig.loadFromStream:7: WARNING: Unexpected indentation.
/Users/jsick/lsst/pipelines_lsst_io_stack/stacks/w_2019_02/stack/miniconda3-4.5.4-fcd27eb/DarwinX86/pex_config/16.0-9-ga1e4bcb/python/lsst/pex/config/config.py:docstring of lsst.ip.diffim.DecorrelateALKernelConfig.compare:12: WARNING: Unexpected indentation.
/Users/jsick/lsst/pipelines_lsst_io_stack/stacks/w_2019_02/stack/miniconda3-4.5.4-fcd27eb/DarwinX86/pex_config/16.0-9-ga1e4bcb/python/lsst/pex/config/config.py:docstring of lsst.ip.diffim.DecorrelateALKernelConfig.loadFromStream:7: WARNING: Unexpected indentation.
/Users/jsick/lsst/pipelines_lsst_io_stack/stacks/w_2019_02/stack/miniconda3-4.5.4-fcd27eb/DarwinX86/pex_config/16.0-9-ga1e4bcb/python/lsst/pex/config/config.py:docstring of lsst.ip.diffim.DecorrelateALKernelMapReduceConfig.compare:12: WARNING: Unexpected indentation.
/Users/jsick/lsst/pipelines_lsst_io_stack/stacks/w_2019_02/stack/miniconda3-4.5.4-fcd27eb/DarwinX86/pex_config/16.0-9-ga1e4bcb/python/lsst/pex/config/config.py:docstring of lsst.ip.diffim.DecorrelateALKernelMapReduceConfig.loadFromStream:7: WARNING: Unexpected indentation.
/Users/jsick/lsst/pipelines_lsst_io_stack/stacks/w_2019_02/stack/miniconda3-4.5.4-fcd27eb/DarwinX86/pex_config/16.0-9-ga1e4bcb/python/lsst/pex/config/config.py:docstring of lsst.ip.diffim.DecorrelateALKernelSpatialConfig.compare:12: WARNING: Unexpected indentation.
/Users/jsick/lsst/pipelines_lsst_io_stack/stacks/w_2019_02/stack/miniconda3-4.5.4-fcd27eb/DarwinX86/pex_config/16.0-9-ga1e4bcb/python/lsst/pex/config/config.py:docstring of lsst.ip.diffim.DecorrelateALKernelSpatialConfig.loadFromStream:7: WARNING: Unexpected indentation.
/Users/jsick/lsst/pipelines_lsst_io_stack/stacks/w_2019_02/stack/miniconda3-4.5.4-fcd27eb/DarwinX86/pex_config/16.0-9-ga1e4bcb/python/lsst/pex/config/config.py:docstring of lsst.ip.diffim.DetectionConfig.compare:12: WARNING: Unexpected indentation.
/Users/jsick/lsst/pipelines_lsst_io_stack/stacks/w_2019_02/stack/miniconda3-4.5.4-fcd27eb/DarwinX86/pex_config/16.0-9-ga1e4bcb/python/lsst/pex/config/config.py:docstring of lsst.ip.diffim.DetectionConfig.loadFromStream:7: WARNING: Unexpected indentation.
/Users/jsick/lsst/pipelines_lsst_io_stack/stacks/w_2019_02/stack/miniconda3-4.5.4-fcd27eb/DarwinX86/pex_config/16.0-9-ga1e4bcb/python/lsst/pex/config/config.py:docstring of lsst.ip.diffim.DiaCatalogSourceSelectorConfig.compare:12: WARNING: Unexpected indentation.
/Users/jsick/lsst/pipelines_lsst_io_stack/stacks/w_2019_02/stack/miniconda3-4.5.4-fcd27eb/DarwinX86/pex_config/16.0-9-ga1e4bcb/python/lsst/pex/config/config.py:docstring of lsst.ip.diffim.DiaCatalogSourceSelectorConfig.loadFromStream:7: WARNING: Unexpected indentation.
/Users/jsick/lsst/pipelines_lsst_io_stack/stacks/w_2019_02/stack/miniconda3-4.5.4-fcd27eb/DarwinX86/pex_config/16.0-9-ga1e4bcb/python/lsst/pex/config/config.py:docstring of lsst.ip.diffim.DiaSourceAnalystConfig.compare:12: WARNING: Unexpected indentation.
/Users/jsick/lsst/pipelines_lsst_io_stack/stacks/w_2019_02/stack/miniconda3-4.5.4-fcd27eb/DarwinX86/pex_config/16.0-9-ga1e4bcb/python/lsst/pex/config/config.py:docstring of lsst.ip.diffim.DiaSourceAnalystConfig.loadFromStream:7: WARNING: Unexpected indentation.
/Users/jsick/lsst/pipelines_lsst_io_stack/stacks/w_2019_02/stack/miniconda3-4.5.4-fcd27eb/DarwinX86/pex_config/16.0-9-ga1e4bcb/python/lsst/pex/config/config.py:docstring of lsst.ip.diffim.DipoleFitPluginConfig.compare:12: WARNING: Unexpected indentation.
/Users/jsick/lsst/pipelines_lsst_io_stack/stacks/w_2019_02/stack/miniconda3-4.5.4-fcd27eb/DarwinX86/pex_config/16.0-9-ga1e4bcb/python/lsst/pex/config/config.py:docstring of lsst.ip.diffim.DipoleFitPluginConfig.loadFromStream:7: WARNING: Unexpected indentation.
/Users/jsick/lsst/pipelines_lsst_io_stack/stacks/w_2019_02/stack/miniconda3-4.5.4-fcd27eb/DarwinX86/pex_config/16.0-9-ga1e4bcb/python/lsst/pex/config/config.py:docstring of lsst.ip.diffim.DipoleFitTaskConfig.compare:12: WARNING: Unexpected indentation.
/Users/jsick/lsst/pipelines_lsst_io_stack/stacks/w_2019_02/stack/miniconda3-4.5.4-fcd27eb/DarwinX86/pex_config/16.0-9-ga1e4bcb/python/lsst/pex/config/config.py:docstring of lsst.ip.diffim.DipoleFitTaskConfig.loadFromStream:7: WARNING: Unexpected indentation.
/Users/jsick/lsst/pipelines_lsst_io_stack/stacks/w_2019_02/stack/miniconda3-4.5.4-fcd27eb/DarwinX86/pex_config/16.0-9-ga1e4bcb/python/lsst/pex/config/config.py:docstring of lsst.ip.diffim.DipoleMeasurementConfig.compare:12: WARNING: Unexpected indentation.
/Users/jsick/lsst/pipelines_lsst_io_stack/stacks/w_2019_02/stack/miniconda3-4.5.4-fcd27eb/DarwinX86/pex_config/16.0-9-ga1e4bcb/python/lsst/pex/config/config.py:docstring of lsst.ip.diffim.DipoleMeasurementConfig.loadFromStream:7: WARNING: Unexpected indentation.
/Users/jsick/lsst/pipelines_lsst_io_stack/stacks/w_2019_02/stack/miniconda3-4.5.4-fcd27eb/DarwinX86/pex_config/16.0-9-ga1e4bcb/python/lsst/pex/config/config.py:docstring of lsst.ip.diffim.GetCalexpAsTemplateConfig.compare:12: WARNING: Unexpected indentation.
/Users/jsick/lsst/pipelines_lsst_io_stack/stacks/w_2019_02/stack/miniconda3-4.5.4-fcd27eb/DarwinX86/pex_config/16.0-9-ga1e4bcb/python/lsst/pex/config/config.py:docstring of lsst.ip.diffim.GetCalexpAsTemplateConfig.loadFromStream:7: WARNING: Unexpected indentation.
/Users/jsick/lsst/pipelines_lsst_io_stack/stacks/w_2019_02/stack/miniconda3-4.5.4-fcd27eb/DarwinX86/pex_config/16.0-9-ga1e4bcb/python/lsst/pex/config/config.py:docstring of lsst.ip.diffim.GetCoaddAsTemplateConfig.compare:12: WARNING: Unexpected indentation.
/Users/jsick/lsst/pipelines_lsst_io_stack/stacks/w_2019_02/stack/miniconda3-4.5.4-fcd27eb/DarwinX86/pex_config/16.0-9-ga1e4bcb/python/lsst/pex/config/config.py:docstring of lsst.ip.diffim.GetCoaddAsTemplateConfig.loadFromStream:7: WARNING: Unexpected indentation.
/Users/jsick/lsst/pipelines_lsst_io_stack/stacks/w_2019_02/stack/miniconda3-4.5.4-fcd27eb/DarwinX86/pex_config/16.0-9-ga1e4bcb/python/lsst/pex/config/config.py:docstring of lsst.ip.diffim.ImageMapReduceConfig.compare:12: WARNING: Unexpected indentation.
/Users/jsick/lsst/pipelines_lsst_io_stack/stacks/w_2019_02/stack/miniconda3-4.5.4-fcd27eb/DarwinX86/pex_config/16.0-9-ga1e4bcb/python/lsst/pex/config/config.py:docstring of lsst.ip.diffim.ImageMapReduceConfig.loadFromStream:7: WARNING: Unexpected indentation.
/Users/jsick/lsst/pipelines_lsst_io_stack/stacks/w_2019_02/stack/miniconda3-4.5.4-fcd27eb/DarwinX86/pex_config/16.0-9-ga1e4bcb/python/lsst/pex/config/config.py:docstring of lsst.ip.diffim.ImageMapperConfig.compare:12: WARNING: Unexpected indentation.
/Users/jsick/lsst/pipelines_lsst_io_stack/stacks/w_2019_02/stack/miniconda3-4.5.4-fcd27eb/DarwinX86/pex_config/16.0-9-ga1e4bcb/python/lsst/pex/config/config.py:docstring of lsst.ip.diffim.ImageMapperConfig.loadFromStream:7: WARNING: Unexpected indentation.
/Users/jsick/lsst/pipelines_lsst_io_stack/stacks/w_2019_02/stack/miniconda3-4.5.4-fcd27eb/DarwinX86/pex_config/16.0-9-ga1e4bcb/python/lsst/pex/config/config.py:docstring of lsst.ip.diffim.ImagePsfMatchConfig.compare:12: WARNING: Unexpected indentation.
/Users/jsick/lsst/pipelines_lsst_io_stack/stacks/w_2019_02/stack/miniconda3-4.5.4-fcd27eb/DarwinX86/pex_config/16.0-9-ga1e4bcb/python/lsst/pex/config/config.py:docstring of lsst.ip.diffim.ImagePsfMatchConfig.loadFromStream:7: WARNING: Unexpected indentation.
/Users/jsick/lsst/pipelines_lsst_io_stack/stacks/w_2019_02/stack/miniconda3-4.5.4-fcd27eb/DarwinX86/pex_config/16.0-9-ga1e4bcb/python/lsst/pex/config/config.py:docstring of lsst.ip.diffim.ImageReducerConfig.compare:12: WARNING: Unexpected indentation.
/Users/jsick/lsst/pipelines_lsst_io_stack/stacks/w_2019_02/stack/miniconda3-4.5.4-fcd27eb/DarwinX86/pex_config/16.0-9-ga1e4bcb/python/lsst/pex/config/config.py:docstring of lsst.ip.diffim.ImageReducerConfig.loadFromStream:7: WARNING: Unexpected indentation.
/Users/jsick/lsst/pipelines_lsst_io_stack/stacks/w_2019_02/stack/miniconda3-4.5.4-fcd27eb/DarwinX86/pex_config/16.0-9-ga1e4bcb/python/lsst/pex/config/config.py:docstring of lsst.ip.diffim.ModelPsfMatchConfig.compare:12: WARNING: Unexpected indentation.
/Users/jsick/lsst/pipelines_lsst_io_stack/stacks/w_2019_02/stack/miniconda3-4.5.4-fcd27eb/DarwinX86/pex_config/16.0-9-ga1e4bcb/python/lsst/pex/config/config.py:docstring of lsst.ip.diffim.ModelPsfMatchConfig.loadFromStream:7: WARNING: Unexpected indentation.
/Users/jsick/lsst/pipelines_lsst_io_stack/stacks/w_2019_02/stack/miniconda3-4.5.4-fcd27eb/DarwinX86/pex_config/16.0-9-ga1e4bcb/python/lsst/pex/config/config.py:docstring of lsst.ip.diffim.PsfMatchConfig.compare:12: WARNING: Unexpected indentation.
/Users/jsick/lsst/pipelines_lsst_io_stack/stacks/w_2019_02/stack/miniconda3-4.5.4-fcd27eb/DarwinX86/pex_config/16.0-9-ga1e4bcb/python/lsst/pex/config/config.py:docstring of lsst.ip.diffim.PsfMatchConfig.loadFromStream:7: WARNING: Unexpected indentation.
/Users/jsick/lsst/pipelines_lsst_io_stack/stacks/w_2019_02/stack/miniconda3-4.5.4-fcd27eb/DarwinX86/pex_config/16.0-9-ga1e4bcb/python/lsst/pex/config/config.py:docstring of lsst.ip.diffim.PsfMatchConfigAL.compare:12: WARNING: Unexpected indentation.
/Users/jsick/lsst/pipelines_lsst_io_stack/stacks/w_2019_02/stack/miniconda3-4.5.4-fcd27eb/DarwinX86/pex_config/16.0-9-ga1e4bcb/python/lsst/pex/config/config.py:docstring of lsst.ip.diffim.PsfMatchConfigAL.loadFromStream:7: WARNING: Unexpected indentation.
/Users/jsick/lsst/pipelines_lsst_io_stack/stacks/w_2019_02/stack/miniconda3-4.5.4-fcd27eb/DarwinX86/pex_config/16.0-9-ga1e4bcb/python/lsst/pex/config/config.py:docstring of lsst.ip.diffim.PsfMatchConfigDF.compare:12: WARNING: Unexpected indentation.
/Users/jsick/lsst/pipelines_lsst_io_stack/stacks/w_2019_02/stack/miniconda3-4.5.4-fcd27eb/DarwinX86/pex_config/16.0-9-ga1e4bcb/python/lsst/pex/config/config.py:docstring of lsst.ip.diffim.PsfMatchConfigDF.loadFromStream:7: WARNING: Unexpected indentation.
/Users/jsick/lsst/pipelines_lsst_io_stack/stacks/w_2019_02/stack/miniconda3-4.5.4-fcd27eb/DarwinX86/pex_config/16.0-9-ga1e4bcb/python/lsst/pex/config/config.py:docstring of lsst.ip.diffim.SnapPsfMatchConfig.compare:12: WARNING: Unexpected indentation.
/Users/jsick/lsst/pipelines_lsst_io_stack/stacks/w_2019_02/stack/miniconda3-4.5.4-fcd27eb/DarwinX86/pex_config/16.0-9-ga1e4bcb/python/lsst/pex/config/config.py:docstring of lsst.ip.diffim.SnapPsfMatchConfig.loadFromStream:7: WARNING: Unexpected indentation.
/Users/jsick/lsst/pipelines_lsst_io_stack/stacks/w_2019_02/stack/miniconda3-4.5.4-fcd27eb/DarwinX86/pex_config/16.0-9-ga1e4bcb/python/lsst/pex/config/config.py:docstring of lsst.ip.diffim.SnapPsfMatchConfigAL.compare:12: WARNING: Unexpected indentation.
/Users/jsick/lsst/pipelines_lsst_io_stack/stacks/w_2019_02/stack/miniconda3-4.5.4-fcd27eb/DarwinX86/pex_config/16.0-9-ga1e4bcb/python/lsst/pex/config/config.py:docstring of lsst.ip.diffim.SnapPsfMatchConfigAL.loadFromStream:7: WARNING: Unexpected indentation.
/Users/jsick/lsst/pipelines_lsst_io_stack/stacks/w_2019_02/stack/miniconda3-4.5.4-fcd27eb/DarwinX86/pex_config/16.0-9-ga1e4bcb/python/lsst/pex/config/config.py:docstring of lsst.ip.diffim.SnapPsfMatchConfigDF.compare:12: WARNING: Unexpected indentation.
/Users/jsick/lsst/pipelines_lsst_io_stack/stacks/w_2019_02/stack/miniconda3-4.5.4-fcd27eb/DarwinX86/pex_config/16.0-9-ga1e4bcb/python/lsst/pex/config/config.py:docstring of lsst.ip.diffim.SnapPsfMatchConfigDF.loadFromStream:7: WARNING: Unexpected indentation.
/Users/jsick/lsst/pipelines_lsst_io_stack/stacks/w_2019_02/stack/miniconda3-4.5.4-fcd27eb/DarwinX86/pex_config/16.0-9-ga1e4bcb/python/lsst/pex/config/config.py:docstring of lsst.ip.diffim.ZogyConfig.compare:12: WARNING: Unexpected indentation.
/Users/jsick/lsst/pipelines_lsst_io_stack/stacks/w_2019_02/stack/miniconda3-4.5.4-fcd27eb/DarwinX86/pex_config/16.0-9-ga1e4bcb/python/lsst/pex/config/config.py:docstring of lsst.ip.diffim.ZogyConfig.loadFromStream:7: WARNING: Unexpected indentation.
/Users/jsick/lsst/pipelines_lsst_io_stack/stacks/w_2019_02/stack/miniconda3-4.5.4-fcd27eb/DarwinX86/pex_config/16.0-9-ga1e4bcb/python/lsst/pex/config/config.py:docstring of lsst.ip.diffim.ZogyImagePsfMatchConfig.compare:12: WARNING: Unexpected indentation.
/Users/jsick/lsst/pipelines_lsst_io_stack/stacks/w_2019_02/stack/miniconda3-4.5.4-fcd27eb/DarwinX86/pex_config/16.0-9-ga1e4bcb/python/lsst/pex/config/config.py:docstring of lsst.ip.diffim.ZogyImagePsfMatchConfig.loadFromStream:7: WARNING: Unexpected indentation.
/Users/jsick/lsst/pipelines_lsst_io_stack/stacks/w_2019_02/stack/miniconda3-4.5.4-fcd27eb/DarwinX86/pex_config/16.0-9-ga1e4bcb/python/lsst/pex/config/config.py:docstring of lsst.ip.diffim.ZogyMapReduceConfig.compare:12: WARNING: Unexpected indentation.
/Users/jsick/lsst/pipelines_lsst_io_stack/stacks/w_2019_02/stack/miniconda3-4.5.4-fcd27eb/DarwinX86/pex_config/16.0-9-ga1e4bcb/python/lsst/pex/config/config.py:docstring of lsst.ip.diffim.ZogyMapReduceConfig.loadFromStream:7: WARNING: Unexpected indentation.

@isullivan
Copy link
Contributor Author

Sorry about the flake8 errors, I will fix those right away. I'm not sure what to do with the first 8 warnings in your log, since they don't appear to be from ip_diffim. If you have suggestions for how I should deal with those, I would appreciate help with that.

I don't see all of the WARNING: Unexpected indentation messages you're getting when I run sphinx-build . _build/html on my machine, even after a rm -R py-api. I can fix those, but it's hard if I don't have the warnings locally to verify that it's really fixed. Am I missing something?

@jonathansick
Copy link
Member

Okay I'll see if I can figure those warnings out when I go through it. It's looking like either later today or by Monday at this rate.

Copy link
Member

@jonathansick jonathansick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for doing this! I had to time box the review because obviously there's a lot to cover, and a number of things can be refined with further iterative development. I hope that the comments I have provided are at least educational and can frame future work.

In general, an easy win is to ensure that all the descriptions are sentences (capitalized and ending with a period).

I also noticed that there are references to DipoleFitAlgorithm, but that class isn't part of the public API documentation. You might want to look into either making that API public in lsst.ip.diffim or adding another automodapi directive that points to the module where DipoleFitAlgorithm is located (choose whichever is appropriate).

@@ -12,4 +12,4 @@ Python API reference
====================

.. automodapi:: lsst.ip.diffim
:skip: wrapSimpleAlgorithm
:skip: wrapSimpleAlgorithm
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At the top of this page, could you change the title from lsst.ip_diffim to lsst.ip.diffim?

- @ref ip_diffim_diaCatalogSourceSelector_Debug

@section ip_diffim_diaCatalogSourceSelector_Purpose Description
"""Select sources for Kernel candidates
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Try to make the class summaries sentences with a full stop, and also switch from imperative (for functions) to a description of the class's purpose, like:

A task that selects sources for Kernel candidates.

@copydoc \_\_init\_\_

@section ip_diffim_diaCatalogSourceSelector_IO Invoking the Task
Notes
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a heads-up that all this content will eventually move out of the docstring to a task topic page: https://developer.lsst.io/stack/task-topic-type.html

I think it's find to ship this initial numpydoc conversion with this as-is, but keep in mind that this is a TODO item.

<dt>pauseAtEnd
<dd>bool; if True wait after displaying everything and wait for user input
</dl>
.. code-block :: none
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can do .. code-block:: py to get highlighting.


- Uses numpy.random; you may wish to call numpy.random.seed first.

Returns
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move the Returns section above the Notes section. The ordering for the sections is documented at https://developer.lsst.io/python/numpydoc.html#py-docstring-sections

@@ -712,7 +735,7 @@ def computeScorrFourierSpace(self, xVarAst=0., yVarAst=0., **kwargs):

Returns
-------
A lsst.pipe.base.Struct containing:
A `lsst.pipe.base.Struct` containing:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm seeing this a lot in this module; keep in mind that this isn't the proper format for a Returns section. https://developer.lsst.io/python/numpydoc.html#struct-return-types

the template exposure, from which a corresponding sub-exposure
is extracted
kwargs :
**kwargs :
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Drop the :

These kwargs may also include arguments to be propagated to
`ZogyTask.computeDiffim` and `ZogyTask.computeScorr`.

- doScorr : `bool`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make this a regular definition list. So leave out the - from the term, and have the content indented.

additional arguments to be passed to
`lsst.pipe.base.task.Task.__init__`
kwargs :
**kwargs :
additional keyword arguments to be passed to
`lsst.pipe.base.task.Task.__init__`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just lsst.pipe.base.Task

@@ -153,10 +153,10 @@ def __init__(self, templateExposure=None, scienceExposure=None, sig1=None, sig2=
psf2 : 2D `numpy.array`
(Optional) 2D array containing the PSF image for the science img. If
`None`, it is extracted from the PSF taken at the center of `scienceExposure`.
args :
*args :
additional arguments to be passed to
`lsst.pipe.base.task.Task.__init__`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lsst.pipe.base.Task

Fix flake8 errors
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

Successfully merging this pull request may close these issues.

None yet

3 participants