LBNL-ETA / Adapter

The Adapter software is developed at the Energy Efficiency Standards Department and it provides a convenient data table loader from various formats such as xlsx, csv, db (sqlite database), and sqlalchemy. Its main feature is the ability to convert data tables identified in one main and optionally one or more additional input files into database tables and Pandas DataFrames for downstream usage in any compatible software.
1 stars 1 forks source link

win path issue X: vs X:\ #24

Closed 0xd5dc closed 2 years ago

0xd5dc commented 2 years ago
dir1 = os.path.join(
            "X:",  # will get converted for a given OS
            "First_Level",
            "Second_Level",
            "Third_Level",
            "input",
        )
>> dir1
>> "X:First_Level\Second_Level\Third_Level\input"
dir2=r"X:\First_Level\Second_Level\Third_Level\input"

dir1 and dir2 are not equal. Adapter should handle both cases.