Opened 2 years ago

Closed 2 years ago

#2587 closed defect (fixed)

wcst_import - 'NoneType' object has no attribute 'axis_subsets'

Reported by: Bang Pham Huu Owned by: Bang Pham Huu
Priority: major Milestone: 10.0
Component: wcst_import Version: 9.8
Keywords: Cc: Dimitar Misev
Complexity: Medium

Description

In case, "skip" is set to true, and no input files match with pattern defined in ingredients file (e.g. for datetime), then, wcst_import has this problem:

Analyzing file (1/3): /home/rasdaman/rasdaman_community/rasdaman/systemtest/testcases_services/test_all_wcst_import/testdata/020-meris_lai_netcdf_resolution_automatic/GlobLAI-20030101-20030110-H01V06-1.0_MERIS-FR-LAI-HA.nc ...
WARNING: input file '/home/rasdaman/rasdaman_community/rasdaman/systemtest/testcases_services/test_all_wcst_import/testdata/020-meris_lai_netcdf_resolution_automatic/GlobLAI-20030101-20030110-H01V06-1.0_MERIS-FR-LAI-HA.nc' cannot be processed,
wcst_import will ignore this file as "skip" is set to true in the ingredient file. Reason: Could not match input to any of ['YYYY-MM-DD HH:mmZ'] on 'datetime(regex_extract('GlobLAI-20030101-20030110-H01V06-1.0_MERIS-FR-LAI-HA.nc', '(GlobLAIasdasd-)(.+?)(-.+?)\.(.*)', 2), 'YYYYMMDD')'
Elapsed time: 0.001 s.
Analyzing file (2/3): /home/rasdaman/rasdaman_community/rasdaman/systemtest/testcases_services/test_all_wcst_import/testdata/020-meris_lai_netcdf_resolution_automatic/GlobLAI-20031001-20031010-H00V10-1.0_MERIS-FR-LAI-HA.nc ...
WARNING: input file '/home/rasdaman/rasdaman_community/rasdaman/systemtest/testcases_services/test_all_wcst_import/testdata/020-meris_lai_netcdf_resolution_automatic/GlobLAI-20031001-20031010-H00V10-1.0_MERIS-FR-LAI-HA.nc' cannot be processed,
wcst_import will ignore this file as "skip" is set to true in the ingredient file. Reason: Could not match input to any of ['YYYY-MM-DD HH:mmZ'] on 'datetime(regex_extract('GlobLAI-20031001-20031010-H00V10-1.0_MERIS-FR-LAI-HA.nc', '(GlobLAIasdasd-)(.+?)(-.+?)\.(.*)', 2), 'YYYYMMDD')'
Elapsed time: 0.000 s.
Analyzing file (3/3): /home/rasdaman/rasdaman_community/rasdaman/systemtest/testcases_services/test_all_wcst_import/testdata/020-meris_lai_netcdf_resolution_automatic/GlobLAI-20031001-20031010-H00V11-1.0_MERIS-FR-LAI-HA.nc ...
WARNING: input file '/home/rasdaman/rasdaman_community/rasdaman/systemtest/testcases_services/test_all_wcst_import/testdata/020-meris_lai_netcdf_resolution_automatic/GlobLAI-20031001-20031010-H00V11-1.0_MERIS-FR-LAI-HA.nc' cannot be processed,
wcst_import will ignore this file as "skip" is set to true in the ingredient file. Reason: Could not match input to any of ['YYYY-MM-DD HH:mmZ'] on 'datetime(regex_extract('GlobLAI-20031001-20031010-H00V11-1.0_MERIS-FR-LAI-HA.nc', '(GlobLAIasdasd-)(.+?)(-.+?)\.(.*)', 2), 'YYYYMMDD')'
Elapsed time: 0.000 s.
An error has occured in the execution of the program. Error Message: 'NoneType' object has no attribute 'axis_subsets'
Stack Trace: Traceback (most recent call last):
  File "/home/rasdaman/rasdaman_community/install/share/rasdaman/wcst_import/wcst_import.py", line 216, in main
    reg.run_recipe(session)
  File "/home/rasdaman/rasdaman_community/rasdaman/applications/wcst_import/master/recipe/recipe_registry.py", line 272, in run_recipe
    self.__run_recipe(session, recipe)
  File "/home/rasdaman/rasdaman_community/rasdaman/applications/wcst_import/master/recipe/recipe_registry.py", line 218, in __run_recipe
    recipe.describe()
  File "/home/rasdaman/rasdaman_community/rasdaman/applications/wcst_import/recipes/general_coverage/recipe.py", line 151, in describe
    importer = self._get_importer()
  File "/home/rasdaman/rasdaman_community/rasdaman/applications/wcst_import/recipes/general_coverage/recipe.py", line 822, in _get_importer
    coverages = self._get_coverages()
  File "/home/rasdaman/rasdaman_community/rasdaman/applications/wcst_import/recipes/general_coverage/recipe.py", line 685, in _get_coverages
    coverages = self._get_netcdf_coverage(recipe_type)
  File "/home/rasdaman/rasdaman_community/rasdaman/applications/wcst_import/recipes/general_coverage/recipe.py", line 770, in _get_netcdf_coverage
    self.session).to_coverages()
  File "/home/rasdaman/rasdaman_community/rasdaman/applications/wcst_import/recipes/general_coverage/abstract_to_coverage_converter.py", line 588, in to_coverages
    global_metadata = self._generate_global_metadata(first_coverage_slice)
  File "/home/rasdaman/rasdaman_community/rasdaman/applications/wcst_import/recipes/general_coverage/abstract_to_coverage_converter.py", line 325, in _generate_global_metadata
    for axis in first_slice.axis_subsets:
AttributeError: 'NoneType' object has no attribute 'axis_subsets'

Change History (1)

comment:1 by Bang Pham Huu, 2 years ago

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.