Skip to content

Commit

Permalink
remove schema_editor (spacetelescope#8909)
Browse files Browse the repository at this point in the history
  • Loading branch information
braingram authored Nov 1, 2024
2 parents 2a55d5b + 1f87cb2 commit a32f8b0
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 164 deletions.
1 change: 1 addition & 0 deletions changes/8909.scripts.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Remove the outdated schema_editor script.
4 changes: 2 additions & 2 deletions jwst/datamodels/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
_jwst_models = ["ModelContainer", "SourceModelContainer", "ModelLibrary"]

# Deprecated modules in stdatamodels
_deprecated_modules = ['schema']
_deprecated_modules = ['schema', 'schema_editor']

# Deprecated models in stdatamodels
_deprecated_models: list[str] = []
Expand All @@ -52,6 +52,6 @@
sys.modules[f"jwst.datamodels.{attr}"] = obj

# Add a few submodules to sys.modules without exposing them locally
for _submodule_name in ['schema_editor', 'validate']:
for _submodule_name in ['validate']:
_submodule = importlib.import_module(f"stdatamodels.jwst.datamodels.{_submodule_name}")
sys.modules[f"jwst.datamodels.{_submodule_name}"] = _submodule
118 changes: 0 additions & 118 deletions jwst/regtest/test_schema_editor.py

This file was deleted.

42 changes: 0 additions & 42 deletions jwst/scripts/schema_editor.py

This file was deleted.

1 change: 0 additions & 1 deletion jwst/scripts/tests/test_scripts.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
'create_data',
'okify_regtests',
'pointing_summary',
'schema_editor',
'schemadoc',
'set_telescope_pointing',
'set_telescope_pointing.py',
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ csvconvert = "jwst.csv_tools.csvconvert:CSVConvertScript"
exp_to_source = "jwst.exp_to_source.main:Main"
okify_regtests = "jwst.scripts.okify_regtests:main"
pointing_summary = "jwst.scripts.pointing_summary:main"
schema_editor = "jwst.scripts.schema_editor:main"
schemadoc = "jwst.scripts.schemadoc:main"
set_telescope_pointing = "jwst.scripts.set_telescope_pointing:main"
"set_telescope_pointing.py" = "jwst.scripts.set_telescope_pointing:deprecated_name"
Expand Down

0 comments on commit a32f8b0

Please sign in to comment.