68def registerSkymap(repo, config, config_file):
69 """Make and register a SkyMap in a butler repository.
74 URI to the location of the butler repository.
75 config : `dict` [`str`, `str`] or `None`
76 Key-value pairs to apply as overrides to the ingest config.
77 config_file : `str` or `None`
78 Path to a config overrides file. Can be a URI.
83 If a config overrides file is given and does not exist.
91 resource = ResourcePath(config_file)
92 with resource.as_local()
as local_config:
93 skyMapConfig.load(local_config.ospath)
96 skyMapConfig.update(**config)
98 butler = Butler(repo, writeable=
True)