1
0
Fork 0
mirror of https://github.com/cosmo-sims/cosmICweb-music.git synced 2024-09-19 16:53:43 +02:00

apply black formatting to my changes

This commit is contained in:
Lukas Winkler 2024-04-17 19:26:28 +02:00
parent 79b5fc8c01
commit d710bd1f1b
Signed by: lukas
GPG key ID: 54DE4D798D244853

View file

@ -23,6 +23,7 @@ logger.setLevel("INFO")
DEFAULT_URL = "https://cosmicweb.eu"
EDITOR = os.environ.get("EDITOR", "vim")
# Types
class Ellipsoid(NamedTuple):
center: int
@ -49,7 +50,6 @@ class Args(NamedTuple):
attempts: int
def query_yes_no(question, default="yes"):
"""Ask a yes/no question via raw_input() and return their answer.
@ -281,7 +281,7 @@ def downloadstore_mode(args: Args, target: str):
logging.info("Fetching download configuration from the cosmICweb server")
config = fetch_downloadstore(args.url, target)
if args.output_path == "./":
args = args._replace(output_path = "./cosmICweb-zooms-{}".format(config.simulation_name))
args = args._replace(output_path=f"./cosmICweb-zooms-{config.simulation_name}")
logging.debug("Output directory set to " + args.output_path)
logging.info("Download configuration successfully fetched")
process_config(config, args)
@ -328,7 +328,7 @@ def cli(ctx, url, output_path, common_directory, attempts, verbose):
url=url,
output_path=output_path,
common_directory=common_directory,
attempts=attempts
attempts=attempts,
)