[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [EnergyPlus_Support] How To Change Warning into Fatal Error? (schedule:file CSV line endings)
- To: "EnergyPlus_Support@xxxxxxxxxxxxxxx" <EnergyPlus_Support@xxxxxxxxxxxxxxx>
- Subject: RE: [EnergyPlus_Support] How To Change Warning into Fatal Error? (schedule:file CSV line endings)
- From: "Griffith, Brent" <brent.griffith@xxxxxxxx>
- Date: Thu, 11 Oct 2012 11:06:48 -0600
- Accept-language: en-US
- Acceptlanguage: en-US
- Delivered-to: mailing list EnergyPlus_Support@xxxxxxxxxxxxxxx
- Delivery-date: Thu, 11 Oct 2012 11:06:53 -0600
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoogroups.com; s=lima; t=1349975212; bh=xB5ufm9JQsq5gB24WQfUrpXLkptxo1gO7DvxiFMOtko=; h=Received:Received:X-Yahoo-Newman-Id:X-Sender:X-Apparently-To:X-Received:X-Received:X-Received:X-Received:X-Received:To:Thread-Topic:Thread-Index:Message-ID:References:In-Reply-To:Accept-Language:Content-Language:X-MS-Has-Attach:X-MS-TNEF-Correlator:acceptlanguage:X-Originating-IP:X-eGroups-Msg-Info:From:X-Yahoo-Profile:Sender:MIME-Version:Mailing-List:Delivered-To:List-Id:Precedence:List-Unsubscribe:Date:Subject:Reply-To:X-Yahoo-Newman-Property:Content-Type; b=RSkbo2pxAmTgkvQlbsVd3iOxDrs+YQgSvu03QHWW9Mp7lAmR7q/SbRNuyDtFmx4yXaWxVDvc5KtDi69VG/6HuqQ0ccaaGAbUsd2eVVii8PnKB4aTEL0hKptB08lANWvZ
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=lima; d=yahoogroups.com; b=UpN3przAO3gfrQM33S3IB+KnVbBkKqEm8nZ4b1YOUIQf25FnoclbvSr9Umg2rjyL2BxfM7QqiNRzyW1R92Itod8KbAHJL9ohHqedmMrGlh5D+kHZfusQId/6HntE5GK5;
- Envelope-to: linda@xxxxxxxxxxxxxx
- In-reply-to: <k56thb+32qb@eGroups.com>
- List-id: <EnergyPlus_Support.yahoogroups.com>
- List-unsubscribe: <mailto:EnergyPlus_Support-unsubscribe@yahoogroups.com>
- Mailing-list: list EnergyPlus_Support@xxxxxxxxxxxxxxx; contact EnergyPlus_Support-owner@xxxxxxxxxxxxxxx
- References: <k56thb+32qb@eGroups.com>
- Reply-to: EnergyPlus_Support@xxxxxxxxxxxxxxx
- Sender: EnergyPlus_Support@xxxxxxxxxxxxxxx
- Thread-index: Ac2n0PsF4t3EGYbbS1y6P+zGdX6j/gAAUkKA
- Thread-topic: [EnergyPlus_Support] How To Change Warning into Fatal Error? (schedule:file CSV line endings)
EMS does have a built in function called @FatalHaltEp. It may be possible to test the schedule somehow and then call that function to fatal out.
From: EnergyPlus_Support@xxxxxxxxxxxxxxx [mailto:EnergyPlus_Support@xxxxxxxxxxxxxxx] On Behalf Of Ryan_Element
Sent: Thursday, October 11, 2012 10:53 AM
To: EnergyPlus_Support@xxxxxxxxxxxxxxx
Subject: [EnergyPlus_Support] How To Change Warning into Fatal Error? (schedule:file CSV line endings)
Greetings,
I would like to change certain energyplus-warnings into fatal errors, so that
instead of running after issuing a certain warning, the simulation will be
terminated.
I found the Output:PreprocessorMessage object in the I/O reference, but I'm not
sure how to use it - or even if it's the right approach.
WHY would I want this, you ask? Because there is one warning (IMO) that should
be an error, and should cause the simulation to terminate...I use the
schedule:file object to reference several schedules stored in a CSV file.
Occasionally I edit this CSV file using excel on my apple computer. When I save
the CSV file in excel, the line-endings are set as
macintosh-text-file-line-endings. After saving the CSV with mac-based-line
endings, I run my energyplus simulation on my apple computer. Sadly, energyplus
cannot read text files with mac-based line-endings, so it issues a warning to
that effect, but continues to run - WITHOUT the schedules it was intended to
use.
I can circumvent this issue by re-saving the CSV file in a text editor and
specifying that it should have unix-based-line-endings. With
unix-based-line-endings, the file is readable by energyplus, and my simulation
works properly. This is truly annoying, as I edit the CSV file regularly, and
don't want to go through the additional steps of re-saving it with unix-based
line-endings each time. It is also annoying because IF I forget to re-save the
CSV file, the simulation still runs without an error, and I don't realize that
anything is amiss until I view the bogus results, ponder why the results are
bogus, remember to check on the CSV file line-endings, and so on.
Thanks for your help
Ryan
__._,_.___
Primary EnergyPlus support is found at:
<http://energyplus.helpserve.com>http://energyplus.helpserve.com or send a message to energyplus-support@xxxxxxxx
The primary EnergyPlus web site is found at:
<http://www.energyplus.gov>http://www.energyplus.gov
The group web site is:
<http://groups.yahoo.com/group/EnergyPlus_Support/>http://groups.yahoo.com/group/EnergyPlus_Support/
Attachments are currently allowed but be mindful that not everyone has a high speed connection. Limit attachments to small files.
EnergyPlus Documentation is searchable. Open EPlusMainMenu.pdf under the Documentation link and press the "search" button.
<http://geo.yahoo.com/serv?s=97476590/grpId=3387488/grpspId=1705007389/msgId=27131/stime=1349975212>
Your email settings: Individual Email|Traditional
<http://groups.yahoo.com/group/EnergyPlus_Support/join;_ylc=X3oDMTJmazg2dmh2BF9TAzk3NDc2NTkwBGdycElkAzMzODc0ODgEZ3Jwc3BJZAMxNzA1MDA3Mzg5BHNlYwNmdHIEc2xrA3N0bmdzBHN0aW1lAzEzNDk5NzUyMTI->Change settings via the Web (Yahoo! ID required)
Change settings via email: <mailto:EnergyPlus_Support-digest@xxxxxxxxxxxxxxx?subject=Email Delivery: Digest>Switch delivery to Daily Digest | Switch to Fully Featured
<http://groups.yahoo.com/group/EnergyPlus_Support;_ylc=X3oDMTJkMXQ3c2o4BF9TAzk3NDc2NTkwBGdycElkAzMzODc0ODgEZ3Jwc3BJZAMxNzA1MDA3Mzg5BHNlYwNmdHIEc2xrA2hwZgRzdGltZQMxMzQ5OTc1MjEy>Visit Your Group | <http://docs.yahoo.com/info/terms/> Yahoo! Groups Terms of Use | <mailto:EnergyPlus_Support-unsubscribe@xxxxxxxxxxxxxxx?subject=Unsubscribe> Unsubscribe
__,_._,___