Thank you!
I should be able to work everything else out just fine now.
- Kyle Travis
On Mar 26, 2014, at 6:56 PM, Dmitry Onoprienko <[log in to unmask]> wrote:
> 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
|