On Fri, Aug 08, 2014 at 10:39:11PM +0200, Matthias Zaake wrote:
> Dear Dave,
> 
> thank you for sharing the tool!
> 
> I had an error (and found a workaround) but  found no bugtracker so I'll
> bother you via e-mail:
> 
> Best Regards
> Matthias Zaake
> 
> 
> 
> generateDS could not process the "GDML" schema, to be found here:
> 
> http://gdml.web.cern.ch/GDML/gdmlschema.html

Thanks for providing this test case.  I tried processing the GDML
schema both before and after applying your fix.  Before, it threw
an exception; after applying the fix, it did not.

GDML, by the way, sounds very interesting.  I'm guessing that as
more people with more ideas find out about this ability to represent
and process the description of geometry, we will see some exciting
new things.  Maybe you are even working on one of those.  Best of
luck with that.

I have not yet released a new version.  But, the latest code, with
your patch, is at Bitbucket:

    https://bitbucket.org/dkuhlman/generateds

If you try that version, please let me know whether it works for you
or not.

Thanks again for help.

Dave

> 
> 
> It reported the following:
> 
> Traceback (most recent call last):
>   File "/usr/bin/generateDS.py", line 5, in <module>
>     pkg_resources.run_script('generateDS==2.12e', 'generateDS.py')
>   File

[snip]

> "/usr/lib/python2.7/site-packages/generateDS-2.12e-py2.7.egg/EGG-INFO/scripts/generateDS.py",
> line 4236, in generateClasses
>     if s2[0] == '"' or s2[-1] == '"':
> IndexError: string index out of range
> 
> I got it running doing this: (avoiding to say "I fixed it" as I'm new to
> python and don't know exactly what I do yet)
> 
> File
> /usr/lib/python2.7/site-packages/generateDS-2.12e-py2.7.egg/EGG-INFO/scripts/generateDS.py
> Line 4235
> Add new line: if len(s2) > 1:
> 

-- 

Dave Kuhlman
http://www.davekuhlman.org

------------------------------------------------------------------------------
_______________________________________________
generateds-users mailing list
generateds-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/generateds-users

Reply via email to