Skip to content

docs/make_params.py still uses the old package path #28

Description

@hgao-astro

docs/make_params.py still looks for the pipeline steps here:

glob("../autoprof/pipeline_steps/*.py")

but the package is under src/autoprof now, so running it from docs/ finds nothing:

$ cd docs
$ python -c 'from glob import glob; print(glob("../autoprof/pipeline_steps/*.py"))'
[]

The bad part is that the script carries on and overwrites parameters.rst, leaving basically just the page header.

It probably just needs to build the paths from __file__, look in ../src/autoprof/pipeline_steps, and stop without writing anything if the glob is empty.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    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