LISTSERV mailing list manager LISTSERV 16.5

Help for KPIX-BEAMTEST-SOFTWARE Archives


KPIX-BEAMTEST-SOFTWARE Archives

KPIX-BEAMTEST-SOFTWARE Archives


KPIX-BEAMTEST-SOFTWARE@LISTSERV.SLAC.STANFORD.EDU


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Proportional Font

LISTSERV Archives

LISTSERV Archives

KPIX-BEAMTEST-SOFTWARE Home

KPIX-BEAMTEST-SOFTWARE Home

KPIX-BEAMTEST-SOFTWARE  March 2014

KPIX-BEAMTEST-SOFTWARE March 2014

Subject:

Re: KpixFileReader and KpixReaderPlugin Dependency

From:

Dmitry Onoprienko <[log in to unmask]>

Reply-To:

Discussion of software development for the KPiX beamtest <[log in to unmask]>

Date:

Wed, 26 Mar 2014 15:56:54 -0700

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (56 lines)

Hello Kyle,

I refactored KPiX data reader to get rid of dependencies on Jas3-specific classes. I also coded an example of running KPiX reader outside Jas3 - see kpix-user project, org.hep.kpix.examples.Standalone class. Let me know if that works for you.

Best Regards,
- Dmitry.

> -----Original Message-----
> From: [log in to unmask] [mailto:kpix-beamtest-
> [log in to unmask]] On Behalf Of Kyle Travis
> Sent: Tuesday, March 25, 2014 6:21 PM
> To: kpix-beamtest-software
> Subject: [KPIX-BEAMTEST-SOFTWARE] KpixFileReader and KpixReaderPlugin
> Dependency
> 
> Hello,
> 
> I’m having an issue using the KpixFileReader class within a different project
> package (and context.)
> 
> I am writing a class that outputs KpixRecord(s) and similar objects in the binary
> data format that KpixReader expects, and I’m currently having difficulties with a
> unit test I wrote. My goal is to read a data  and pass the record to my new class,
> eventually writing to a temporary file that gets read in a final time to compare
> with the original. I need to use a KpixFileReader to read in the data, but there
> isn’t a way I know of to successfully create a KpixFileReader without a running
> instance of JAS3, with the KpixReaderPlugin initialized and registered in the
> application’s lookup. I was really hoping to be able to keep this test separate
> from all of that, so I tried writing a version of KpixFileReader without the
> dependency (used to read user preferences/calibration,) but this wasn’t
> particularly straightforward either, and seemed like an unnecessary repetition.
> As far as I can tell the only reason this doesn’t work currently is that
> KpixFileReader tries to access and update preferences from the
> KpixReaderPlugin, which is not initialized in this case.
> 
> I’m sure there’s a much easier way to do this, but I’m not positive which
> direction to go in at the moment. if anyone has an answer or suggestion I would
> greatly appreciate it!
> 
> Thank you,
> 
> Kyle Travis
> #################################################################
> #######
> Use REPLY-ALL to reply to list
> 
> To unsubscribe from the KPIX-BEAMTEST-SOFTWARE list, click the following link:
> https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=KPIX-BEAMTEST-
> SOFTWARE&A=1

########################################################################
Use REPLY-ALL to reply to list

To unsubscribe from the KPIX-BEAMTEST-SOFTWARE list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=KPIX-BEAMTEST-SOFTWARE&A=1

Top of Message | Previous Page | Permalink

Advanced Options


Options

Log In

Log In

Get Password

Get Password


Search Archives

Search Archives


Subscribe or Unsubscribe

Subscribe or Unsubscribe


Archives

May 2014
April 2014
March 2014
November 2013
September 2013
August 2013
July 2013
June 2013
May 2013

ATOM RSS1 RSS2



LISTSERV.SLAC.STANFORD.EDU

Secured by F-Secure Anti-Virus CataList Email List Search Powered by the LISTSERV Email List Manager

Privacy Notice, Security Notice and Terms of Use