Nabile M. Safdar

35 papers Journal 18Unranked 17
YearRankTypeTitle / Venue / Authors
2025 J jnl
J. Imaging Inform. Medicine
Mana Moassefi, Yashbir Singh, Gian Marco Conte, Bardia Khosravi, Pouria Rouzrokh, Sanaz Vahdati, Nabile M. Safdar, Linda Moy, Felipe Kitamura, Amilcare Gentili, Paras Lakhani, Nina Kottler, Safwan S. Halabi, Joseph H. Yacoub, Yuankai Hou, Khaled Younis, Bradley J. Erickson, Elizabeth A. Krupinski, Shahriar Faghani
2024 J jnl
J. Imaging Inform. Medicine
Mana Moassefi, Yashbir Singh, Gian Marco Conte, Bardia Khosravi, Pouria Rouzrokh, Sanaz Vahdati, Nabile M. Safdar, Linda Moy, Felipe Kitamura, Amilcare Gentili, Paras Lakhani, Nina Kottler, Safwan S. Halabi, Joseph H. Yacoub, Yuankai Hou, Khaled Younis, Bradley J. Erickson, Elizabeth A. Krupinski, Shahriar Faghani
2023 J jnl
J. Digit. Imaging
Roger Gerard, Valeria Makeeva, Brianna L. Vey, Tessa Sundaram Cook, Paul G. Nagy, Ross W. Filice, Kenneth C. Wang, Patricia C. Balthazar, Peter Harri, Nabile M. Safdar
2023 J jnl
J. Imaging Inform. Medicine
Carson A. Wick, Srini Tridandapani, Marta E. Heilbrun, Tarek Hanna, Nabile M. Safdar, Pamela T. Bhatti
2023 J jnl
Computer
Pradeeban Kathiravelu, Nan Li, Nishchal Singi, Ananth Reddy Bhimireddy, Ryan Birmingham, Judy Wawira Gichoya, Hari Trivedi, Nabile M. Safdar, Ashish Sharma, Puneet Sharma
2021 J jnl
J. Digit. Imaging
Pradeeban Kathiravelu, Puneet Sharma, Ashish Sharma, Imon Banerjee, Hari Trivedi, Saptarshi Purkayastha, Priyanshu Sinha, Alexandre Cadrin-Chenevert, Nabile M. Safdar, Judy Wawira Gichoya
2020 J jnl
J. Digit. Imaging
Valeria Makeeva, Brianna L. Vey, Tessa Sundaram Cook, Paul G. Nagy, Ross W. Filice, Kenneth C. Wang, Patricia C. Balthazar, Peter Harri, Nabile M. Safdar
2019 J jnl
J. Digit. Imaging
Brianna L. Vey, Tessa Sundaram Cook, Paul G. Nagy, Richard J. Bruce, Ross W. Filice, Kenneth C. Wang, Nabile M. Safdar
2016 J jnl
IEEE Trans. Medical Imaging
Juan J. Cerrolaza, Nabile M. Safdar, Elijah Biggs, James Jago, Craig A. Peters, Marius George Linguraru
2016 J jnl
J. Digit. Imaging
Meredith Bowen, Adam Prater, Nabile M. Safdar, Seena Dehkharghani, Jack A. Fountain
2015 conf
EMBC
Juan J. Cerrolaza, Enrico Grisan, Nabile M. Safdar, Emmarie Myers, James Jago, Craig A. Peters, Marius George Linguraru
2015 conf
Computer-Aided Diagnosis
Juan J. Cerrolaza, Jennifer Q. Peng, Nabile M. Safdar, Laurie Conklin, Raymond W. Sze, Marius George Linguraru
2014 conf
BioRob
Reza Monfaredi, Reza Seifabadi, Iulian Iordachita, Raymond W. Sze, Nabile M. Safdar, Karun Sharma, Stanley Fricke, Axel Krieger, Kevin Cleary
2014 conf
ISBI
Qian Zhao, Nabile M. Safdar, Glenna Yu, Emmarie Myers, Antony Koroulakis, Chunzhe Duan, Anthony Sandler, Marius George Linguraru
2014 conf
MICCAI (1)
Qian Zhao, Nabile M. Safdar, Chunzhe Duan, Anthony Sandler, Marius George Linguraru
2014 conf
Computer-Aided Diagnosis
Qian Zhao, Nabile M. Safdar, Glenna Yu, Emmarie Myers, Anthony Sandler, Marius George Linguraru
2014 J jnl
Medical Image Anal.
Carlos S. Mendoza, Nabile M. Safdar, Kazunori Okada, Emmarie Myers, Gary F. Rogers, Marius George Linguraru
2014 conf
ISBI
Juan J. Cerrolaza, Nabile M. Safdar, Craig A. Peters, Emmarie Myers, James Jago, Marius George Linguraru
2014 conf
Computer-Aided Diagnosis
Juan J. Cerrolaza, Craig A. Peters, Aaron D. Martin, Emmarie Myers, Nabile M. Safdar, Marius George Linguraru
2014 conf
CLIP@MICCAI
Xue Yang, Juan J. Cerrolaza, Chunzhe Duan, Qian Zhao, Jonathan G. Murnick, Nabile M. Safdar, Robert Avery, Marius George Linguraru
2013 J jnl
J. Digit. Imaging
Ganesh Saiprasad, Chein-I Chang, Nabile M. Safdar, Naomi Saenz, Eliot L. Siegel
2013 conf
Computer-Aided Diagnosis
Carlos S. Mendoza, Nabile M. Safdar, Emmarie Myers, Tanakorn Kittisarapong, Gary F. Rogers, Marius George Linguraru
2013 conf
MICCAI (3)
Carlos S. Mendoza, Xin Kang, Nabile M. Safdar, Emmarie Myers, Aaron D. Martin, Enrico Grisan, Craig A. Peters, Marius George Linguraru
2013 conf
ISBI
Carlos S. Mendoza, Xin Kang, Nabile M. Safdar, Emmarie Myers, Craig A. Peters, Marius George Linguraru
2013 conf
CLIP
Juan J. Cerrolaza, Nabile M. Safdar, Raymond W. Sze, Marius George Linguraru
2012 conf
CLIP
Carlos S. Mendoza, Nabile M. Safdar, Emmarie Myers, Tanakorn Kittisarapong, Gary F. Rogers, Marius George Linguraru
2011 J jnl
J. Digit. Imaging
James Y. Chen, F. Jacob Seagull, Paul G. Nagy, Paras Lakhani, Elias R. Melhem, Eliot L. Siegel, Nabile M. Safdar
2011 J jnl
J. Digit. Imaging
Michael Chen, Nabile M. Safdar, Paul G. Nagy
2011 J jnl
J. Digit. Imaging
Omer Abdulrehman Awan, Frans van Wagenberg, Mark Daly, Nabile M. Safdar, Paul G. Nagy
2009 J jnl
IEEE Trans. Medical Imaging
Bharath Ramakrishna, Weimin Liu, Ganesh Saiprasad, Nabile M. Safdar, Chein-I Chang, Khan M. Siddiqui, Woojin Kim, Eliot L. Siegel, Jyh Wen Chai, Clayton Chi-Chang Chen, San-Kan Lee
2009 J jnl
J. Digit. Imaging
James Y. Chen, Paras Lakhani, Nabile M. Safdar, Paul G. Nagy
2008 conf
Computer-Aided Diagnosis
Bharath Ramakrishna, Ganesh Saiprasad, Nabile M. Safdar, Khan M. Siddiqui, Chein-I Chang, Eliot L. Siegel
2008 conf
Computer-Aided Diagnosis
Bharath Ramakrishna, Nabile M. Safdar, Khan M. Siddiqui, Woojin Kim, Weimin Liu, Ganesh Saiprasad, Chein-I Chang, Eliot L. Siegel
2007 conf
Computer-Aided Diagnosis
Bharath Ramakrishna, Weimin Liu, Nabile M. Safdar, Khan M. Siddiqui, Woojin Kim, Krishna Juluru, Chein-I Chang, Eliot L. Siegel
2006 J jnl
J. Digit. Imaging
Christopher Toland, Christopher Meenan, Michael Toland, Nabile M. Safdar, Peter Vandermeer, Paul G. Nagy
s3-storage/s3_test.py
← Index s3-storage/s3_test.py python
#!/usr/bin/env python3
"""
Simple script to test S3 connectivity and download.
Usage: python s3_test.py
"""

import os
import time
import tempfile
from minio import Minio
from minio.error import S3Error
from dotenv import load_dotenv

# Load environment variables
load_dotenv()

def get_minio_client():
    """Create and return a Minio client using credentials from .env file"""
    endpoint = os.getenv("S3_ENDPOINT")
    access_key = os.getenv("S3_ACCESS_KEY")
    secret_key = os.getenv("S3_SECRET_KEY")
    secure = True 
    
    print(f"Connecting to S3 endpoint: {endpoint} (secure={secure})")
    
    return Minio(
        endpoint=endpoint,
        access_key=access_key,
        secret_key=secret_key,
        secure=secure
    )

def test_connection():
    """Test basic connectivity to S3"""
    try:
        client = get_minio_client()
        
        # Try to list buckets as a basic connectivity test
        buckets = client.list_buckets()
        print(f"Successfully connected to S3. Found {len(buckets)} buckets:")
        for bucket in buckets:
            print(f"  - {bucket.name}")
        
        return client
    except Exception as e:
        print(f"Failed to connect to S3: {e}")
        return None

def test_bucket_access(client, bucket_name):
    """Test access to a specific bucket"""
    try:
        exists = client.bucket_exists(bucket_name)
        if exists:
            print(f"Bucket '{bucket_name}' exists and is accessible")
            
            # List a few objects to verify access
            count = 0
            objects = []
            for obj in client.list_objects(bucket_name, recursive=True):
                print(f"  - {obj.object_name} ({obj.size} bytes)")
                objects.append(obj)
                count += 1
                if count >= 5:
                    break
            
            print(f"Found at least {len(objects)} objects in bucket")
            return objects
        else:
            print(f"Bucket '{bucket_name}' does not exist or is not accessible")
            return []
    except Exception as e:
        print(f"Error accessing bucket '{bucket_name}': {e}")
        return []

def test_download(client, bucket_name, object_name):
    """Test downloading a specific object"""
    try:
        print(f"Attempting to download: {object_name}")
        start_time = time.time()
        
        # Create a temporary file to store the downloaded object
        with tempfile.NamedTemporaryFile(delete=False) as temp_file:
            temp_path = temp_file.name
        
        # Download the object
        client.fget_object(bucket_name, object_name, temp_path)
        
        # Check if the file was downloaded successfully
        file_size = os.path.getsize(temp_path)
        elapsed_time = time.time() - start_time
        
        print(f"Download successful: {file_size} bytes in {elapsed_time:.2f} seconds")
        print(f"Average download speed: {file_size/elapsed_time/1024:.2f} KB/s")
        
        # Clean up
        os.unlink(temp_path)
        return True
    except S3Error as e:
        print(f"S3 Error during download: {e}")
        return False
    except Exception as e:
        print(f"Error downloading object: {e}")
        return False

def main():
    """Main function to run all tests"""
    print("=== S3 Connectivity Test ===")
    
    # Test basic connectivity
    client = test_connection()
    if not client:
        return
    
    # Get bucket name from environment variable
    bucket_name = "redb"
    print(f"\n=== Testing Access to Bucket: {bucket_name} ===")
    objects = test_bucket_access(client, bucket_name)
    
    if objects:
        # Test downloading the first object
        first_object = objects[0].object_name
        print(f"\n=== Testing Download of Object: {first_object} ===")
        test_download(client, bucket_name, first_object)
        
        # If the first one worked, let's try a specific file from the error log
        print(f"\n=== Testing Download of Specific Object ===")
        specific_object = "00/06/00062073114defac39cb7ab9cb99a0b77c535a09a241c60d47ddd0b6431629f1.zip"
        test_download(client, bucket_name, specific_object)

if __name__ == "__main__":
    main()