Skip to content

Error in Schedule:File when reading an external file #10675

@guxsousa

Description

@guxsousa

Issue overview

Version 24.1.0 of the software has introduced a novel incompatibility: files lacking an explicit .csv extension are no longer recognized as valid inputs.

A temporary workaround involves manually altering the file extension of external data. Specifically, the file name must be either replaced with or appended by .csv.

For instance, the following block will produce an error:

Schedule:File, 
    Rainfall Data from EPW file,          !- Name
    Any Number,                           !- Schedule Type Limits Name
    weather-file.rain,                    !- File Name
    1,                                    !- Column Number
    1,                                    !- Rows to Skip at Top
    8760;                                 !- Number of Hours of Data

The error is rectified upon modification of the file and its corresponding reference:

Schedule:File, 
    Rainfall Data from EPW file,          !- Name
    Any Number,                           !- Schedule Type Limits Name
    weather-file.rain.csv,                !- File Name
    1,                                    !- Column Number
    1,                                    !- Rows to Skip at Top
    8760;                                 !- Number of Hours of Data

Prior to this release, the system successfully processed files with alternative extensions. Not sure what the purpose of the src/EnergyPlus/InputProcessing/CsvParser.cc is, but for now it represents a regression in software functionality from previous versions, where this issue had been previously resolved.

Details

Some additional details for this issue (if relevant):

  • Platform : macOS 14
  • Version of EnergyPlus : 24.1.0
  • Unmethours link or helpdesk ticket number

Checklist

Add to this list or remove from it as applicable. This is a simple templated set of guidelines.

  • Defect file added (list location of defect file here)
  • Ticket added to EnergyPlus Defect Complexity (Github Project)
  • Pull request created (the pull request will have additional tasks related to reviewing changes that fix this defect)

Metadata

Metadata

Labels

TriageIssue needs to be assessed and labeled, further information on reported might be needed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions