Skip to content

Commit

Permalink
Clean-up spaces and unused import
Browse files Browse the repository at this point in the history
  • Loading branch information
mih committed May 31, 2023
1 parent 1bcdfd2 commit 3cce726
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions bin/catalogify_studyvisit_from_meta
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import sys
import tempfile
from uuid import uuid4

import datalad.api as dl
from datalad_catalog.catalog import Catalog
from datalad_catalog.webcatalog import WebCatalog

Expand Down Expand Up @@ -95,7 +94,7 @@ def get_catalog(study_id, catalog_path):
# 3. set catalog home page
ctlg.main_id = study_entry.get('dataset_id')
ctlg.main_version = study_entry.get('dataset_version')
ctlg.set_main_dataset()
ctlg.set_main_dataset()
return ctlg


Expand All @@ -109,7 +108,7 @@ def generate_study_entry(study_id):
ds_version='latest',
ds_name=study_id,
ds_description=desc)


def update_entry(ds_id, ds_version, ds_name, key, value, study_catalog_path):
meta_item = {
Expand Down Expand Up @@ -247,7 +246,6 @@ def format_bytes(bytes, decimals=2):
return f"{round(bytes / math.pow(k, i), dm)} {sizes[i]}"



if __name__ == '__main__':
import argparse
p = argparse.ArgumentParser(description=__doc__)
Expand Down

0 comments on commit 3cce726

Please sign in to comment.