diff --git a/python/lsst/alert/packet/updateSchema.py b/python/lsst/alert/packet/updateSchema.py index 29f12bf..7372caa 100644 --- a/python/lsst/alert/packet/updateSchema.py +++ b/python/lsst/alert/packet/updateSchema.py @@ -53,9 +53,11 @@ def write_schema(schema, schema_name, version, path, update_version=False): if update_version is True: version = version.split('.') - schema['namespace'] = schema['namespace'][0:-1] + str(int(version[1]) + 1) + schema['namespace'] = schema['namespace'][0:-1] + \ + str(int(version[1]) + 1) updated_schema_loc = path[0:-1] + str(int(version[1]) + 1) - updated_schema_name = schema['namespace'] + '.' + schema['name'] + '.avsc' + updated_schema_name = schema['namespace'] + '.' \ + + schema['name'] + '.avsc' if not os.path.exists(updated_schema_loc): os.mkdir(updated_schema_loc) @@ -89,7 +91,8 @@ def update_schema(apdb_filepath, update_version=False): Parameters ---------- apdb_filepath: `string` - Input string for the apdb.yaml file where the docstrings will be compared. + Input string for the apdb.yaml file where the docstrings + will be compared. update_version: 'bool' If True, version will be updated minor version one number.