Skip to content

Commit

Permalink
Remove Project.index. (#593)
Browse files Browse the repository at this point in the history
* Make Project._index method private, refactor to remove unused arguments.

* Remove xfailed crawler test (functionality no longer needed).

* Delete indexing module.

* Clean up references to index in docs.
  • Loading branch information
bdice committed Oct 7, 2022
1 parent 821d597 commit 558db6f
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 744 deletions.
2 changes: 1 addition & 1 deletion changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Removed
- The pre-SyncedCollection synchronized dictionary classes, including SyncedDict, SyncedAttrDict, and JSONDict (#577).
- The old custom JSON encoder and dumps wrapper (#577).
- The MPIPool and the filesystems.py module (#575).
- The following Project methods: ``get_id``, ``build_job_search_index``, ``build_job_statepoint_index``, ``find_job_ids``, ``reset_statepoint``, ``update_statepoint``, ``create_access_module`` (#574).
- The following Project methods: ``get_id``, ``build_job_search_index``, ``build_job_statepoint_index``, ``find_job_ids``, ``reset_statepoint``, ``update_statepoint``, ``create_access_module``, ``index`` (#574, #593).
- The following Job methods: ``get_id`` (#578).
- The ``syncutil.copytree`` method (#581).
- All Crawlers, including ``RegexFileCrawler``, ``MainCrawler``, ``MasterCrawler``, ``SignacProjectCrawler``, and ``BaseCrawler``, in addition to all associated functionality in indexing.py (#580).
Expand Down
1 change: 0 additions & 1 deletion doc/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ The Project
Project.groupbydoc
Project.import_from
Project.id
Project.index
Project.isfile
Project.min_len_unique_id
Project.num_jobs
Expand Down
2 changes: 1 addition & 1 deletion signac/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ def main_project(args):
)
project = get_project()
if args.index:
for doc in project.index():
for doc in project._index():
print(json.dumps(doc))
return
if args.workspace:
Expand Down
Loading

0 comments on commit 558db6f

Please sign in to comment.