Skip to content

Commit

Permalink
Merge branch '332-check_dataset-renommer-check_json-py' into 'master'
Browse files Browse the repository at this point in the history
refact: rename check_json to check_configuration

Closes #332

See merge request 3d/PandoraBox/pandora!280
  • Loading branch information
adebardo committed Sep 1, 2023
2 parents 51f8344 + 570f192 commit 6556987
Show file tree
Hide file tree
Showing 15 changed files with 98 additions and 94 deletions.
2 changes: 1 addition & 1 deletion docs/source/userguide/as_an_api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Pandora provides a full python API which can be used to compute disparity maps a
import pandora
from pandora import common
from pandora.img_tools import read_img, read_disp
from pandora.check_json import check_conf, read_config_file
from pandora.check_configuration import check_conf, read_config_file
from pandora.state_machine import PandoraMachine

def pandora_stereo(cfg_path: str, output: str, verbose: bool) -> None:
Expand Down
2 changes: 1 addition & 1 deletion notebooks/advanced_examples/api_check_conf.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"outputs": [],
"source": [
"from pandora import import_plugin\n",
"from pandora.check_json import (\n",
"from pandora.check_configuration import (\n",
" check_conf,\n",
" get_config_input,\n",
" check_input_section,\n",
Expand Down
2 changes: 1 addition & 1 deletion notebooks/advanced_examples/cost_profile_analysis.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"source": [
"import pandora\n",
"from pandora.img_tools import read_img\n",
"from pandora.check_json import check_pipeline_section, concat_conf\n",
"from pandora.check_configuration import check_pipeline_section, concat_conf\n",
"from pandora.state_machine import PandoraMachine\n",
"from pandora import import_plugin, check_conf"
]
Expand Down
2 changes: 1 addition & 1 deletion notebooks/introduction_and_basic_usage.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@
"# Load pandora imports\n",
"import pandora\n",
"from pandora.img_tools import read_img\n",
"from pandora.check_json import check_pipeline_section, concat_conf, memory_consumption_estimation, get_metadata, get_config_pipeline\n",
"from pandora.check_configuration import check_pipeline_section, concat_conf, memory_consumption_estimation, get_metadata, get_config_pipeline\n",
"from pandora.state_machine import PandoraMachine\n",
"from pandora import import_plugin, check_conf"
]
Expand Down
2 changes: 1 addition & 1 deletion notebooks/statistical_and_visual_analysis.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
"# Load pandora imports\n",
"import pandora\n",
"from pandora.img_tools import read_img\n",
"from pandora.check_json import check_pipeline_section, concat_conf, get_metadata, get_config_pipeline\n",
"from pandora.check_configuration import check_pipeline_section, concat_conf, get_metadata, get_config_pipeline\n",
"from pandora.state_machine import PandoraMachine\n",
"from pandora import import_plugin, check_conf"
]
Expand Down
2 changes: 1 addition & 1 deletion notebooks/usage_with_multiscale.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@
"# Load pandora imports\n",
"import pandora\n",
"from pandora.img_tools import read_img\n",
"from pandora.check_json import check_pipeline_section, concat_conf, get_metadata, get_config_pipeline\n",
"from pandora.check_configuration import check_pipeline_section, concat_conf, get_metadata, get_config_pipeline\n",
"from pandora.state_machine import PandoraMachine\n",
"from pandora import import_plugin, check_conf"
]
Expand Down
2 changes: 1 addition & 1 deletion pandora/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

from . import common
from .img_tools import read_img, read_disp
from .check_json import check_conf, read_config_file, read_multiscale_params
from .check_configuration import check_conf, read_config_file, read_multiscale_params
from .state_machine import PandoraMachine


Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions tests/test_confidence.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def test_ambiguity_std_full_pipeline():
pandora_machine = PandoraMachine()

# Update the user configuration with default values
cfg = pandora.check_json.update_conf(pandora.check_json.default_short_configuration, user_cfg)
cfg = pandora.check_configuration.update_conf(pandora.check_configuration.default_short_configuration, user_cfg)

# Run the pandora pipeline
left, _ = pandora.run(pandora_machine, left_im, right_im, -1, 1, cfg)
Expand Down Expand Up @@ -278,7 +278,7 @@ def test_non_normalized_ambiguity_std_full_pipeline():
pandora_machine = PandoraMachine()

# Update the user configuration with default values
cfg = pandora.check_json.update_conf(pandora.check_json.default_short_configuration, user_cfg)
cfg = pandora.check_configuration.update_conf(pandora.check_configuration.default_short_configuration, user_cfg)

# Run the pandora pipeline
left, _ = pandora.run(pandora_machine, left_im, right_im, -1, 1, cfg)
Expand Down
Loading

0 comments on commit 6556987

Please sign in to comment.