Skip to content

Commit

Permalink
Merge pull request #40 from ImagingDataCommons/idc_v11
Browse files Browse the repository at this point in the history
HFS demo bucket generation code.
  • Loading branch information
bcli4d authored Sep 15, 2022
2 parents 8529d0e + 5f9d6d0 commit 9ef7b5f
Show file tree
Hide file tree
Showing 14 changed files with 388 additions and 501 deletions.
4 changes: 2 additions & 2 deletions hfs/prop1/gen_blobs_1.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def gen_collection_object(args, sess, collection):
print(f'{level} {collection.uuid} completed')
return

def gen_studies(args):
def gen_all(args):

sql_uri = f'postgresql+psycopg2://{settings.CLOUD_USERNAME}:{settings.CLOUD_PASSWORD}@{settings.CLOUD_HOST}:{settings.CLOUD_PORT}/{settings.CLOUD_DATABASE}'
# sql_engine = create_engine(sql_uri, echo=True)
Expand Down Expand Up @@ -102,4 +102,4 @@ def gen_studies(args):
print(f'args: {json.dumps(args.__dict__, indent=2)}')
args.dst_bucket = client.bucket(args.dst_bucket_name)

gen_studies(args)
gen_all(args)
17 changes: 17 additions & 0 deletions hfs/prop3/collection_list_3.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#
# Copyright 2015-2021, Institute for Systems Biology
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

collection_list = ['APOLLO-5-LSCC', 'MIDRC-RICORD-1C', 'TCGA-READ']
156 changes: 0 additions & 156 deletions hfs/prop3/copy_and_rename_instances.py

This file was deleted.

46 changes: 0 additions & 46 deletions hfs/prop3/copy_and_rename_instances.series_instance.py

This file was deleted.

45 changes: 0 additions & 45 deletions hfs/prop3/copy_and_rename_instances.study_series_instance.py

This file was deleted.

Loading

0 comments on commit 9ef7b5f

Please sign in to comment.