Skip to content

chore: update develop #81

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 7, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ def __validate_input(self):

def __get_pds_metadata_file(self):
self.__input_file_list = self.__event['cma']['event']['meta']['input_granules'][0]['files']
pds_metadata_file = None
for each_file in self.__input_file_list:
if 'fileName' not in each_file and 'name' in each_file: # add fileName if there is only name
each_file['fileName'] = each_file['name']
Expand All @@ -136,8 +137,8 @@ def __get_pds_metadata_file(self):
each_file['key'] = s3_key
LOGGER.debug(f'checking file: {each_file}')
if each_file['key'].upper().endswith('.NC.CAS'):
return each_file
return None
pds_metadata_file = each_file
return pds_metadata_file

def __read_pds_metadata_file(self):
self._pds_file_dict = self.__get_pds_metadata_file()
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

setup(
name="cumulus_lambda_functions",
version="1.7.0",
version="1.7.1",
packages=find_packages(),
install_requires=install_requires,
tests_require=['mock', 'nose', 'sphinx', 'sphinx_rtd_theme', 'coverage', 'pystac', 'python-dotenv', 'jsonschema'],
Expand Down