problem with reading version from filename

View: New views
3 Messages — Rating Filter:   Alert me  

problem with reading version from filename

by Åsmund Østvold :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

hi Again

I hope I am not bothering you to much!


I now have a file names like this:

   PMB-MPI1_MPI-OpenMPI_version1.0.2_nn2_ppn1_interIB_run1.log

that I want to get "1.0.2" from. In auto-pmb_exp.xml I have:

   <parameter occurence="once">
     <name>MPI_version</name>
     <synopsis>Version of MPI library</synopsis>
     <datatype>version</datatype>
   </parameter>


In auto-pmb_input.xml I have:

   <filename_location len="0">
     <name>MPI_version</name>
     <match terminator="_">_version</match>
   </filename_location>


When I try to import the file I get:

$ perfbase input -v -d auto-pmb_input.xml  
pe1850_input_IB/PMB-MPI1_MPI-OpenMPI_version1.0.2_nn2_ppn1_interIB_run1.log
#* importing data from
     pe1850_input_IB/PMB-MPI1_MPI-OpenMPI_version1.0.2_nn2_ppn1_interIB_run1.log  
(parsed according to auto-pmb_input.xml)
#* Parsing input description from XML file auto-pmb_input.xml
#* hashing file  
pe1850_input_IB/PMB-MPI1_MPI-OpenMPI_version1.0.2_nn2_ppn1_interIB_run1.log
#* file  
pe1850_input_IB/PMB-MPI1_MPI-OpenMPI_version1.0.2_nn2_ppn1_interIB_run1.log  
has 363 lines
#* Processing data file  
pe1850_input_IB/PMB-MPI1_MPI-OpenMPI_version1.0.2_nn2_ppn1_interIB_run1.log
#+ Creating new run with index 18
ERROR:  version_nbr_in: parse error in 1.0.2_nn2_ppn1_interIB_run1.log:9  
(duplicate release type string)

UPDATE rundata_once SET MPI_version = '1.0.2_nn2_ppn1_interIB_run1.log'  
WHERE run_index = 18


If you have a suggestion that you would like me to try I would be happy to  
give you the result.



Åsmund

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: problem with reading version from filename

by Joachim Worringen-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Åsmund Østvold wrote:
>   <filename_location len="0">

len="0" means "use the rest of the line" and overrides the terminator attribute.
Just leave it away, and it should work.

And don't worry - this really doesn't bother me.

  Joachim

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: problem with reading version from filename

by Åsmund Østvold :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thu, 08 Jun 2006 18:32:05 +0200, Joachim Worringen <joachim@...>  
wrote:

> Åsmund Østvold wrote:
>>   <filename_location len="0">
>
> len="0" means "use the rest of the line" and overrides the terminator  
> attribute. Just leave it away, and it should work.

Thank you.  This was a copy error from my side.  urg...  I did not evan  
see it.


> And don't worry - this really doesn't bother me.

Thats good.



Åsmund

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...