PiRSquared17 / cing

Automatically exported from code.google.com/p/cing
0 stars 0 forks source link

projectDirectory use correct in LinkNmrStarData? #160

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Wim, could you check why I had to change from:

    self.summaryFile = open(os.path.join(projectDirectory,self.idCode,"%s.summary" % 
self.baseName),'w')

to:

    self.summaryFile = open(os.path.join(self.projectDirectory,self.idCode,"%s.summary" % 
self.baseName),'w')

Remember we had a discussion on this. The above fixes it but I want to ask you 
to check in the 
change please.

Before I got:

Using projectDirectory: /Users/jd/ccpn_tmp/data/recoord
DEBUG: New project <Project 1brv>
Moving CCPN directory from [linkNmrStarData] to [1brv]
==> Importing data from Ccpn project "1brv"
DEBUG: Molecule.__init__: <Molecule "1brv" (C:0,R:0,A:0,M:0)>
DEBUG: Using CCPN Structure Ensemble 'Original constraints and structures'
Non-standard (residues and their) atoms added:
GLU : O'   [ 189]
DEBUG: Calculating dihedral angles
DEBUG: modelCount: 1; Calculating mean coordinates
==> Molecule 1brv: Potential disulfide bridges: 2
DEBUG: Calculating rmsd's (ranges: None, models: None)
DEBUG: Defining topology
==> Ccpn molecule '1brv' imported
DEBUG: CCPN project contains no shift lists
DEBUG: New "DistanceRestraintList" instance named "distance_constraint_list"
DEBUG: New "DihedralRestraintList" instance named "dihedral_constraint_list"
DEBUG: No ccpnRDCListOfList which can be normal.
DEBUG: ==> Ccpn project imported
-------------------------------------------------------
==> Saving <Project 1brv>
==> Saved <Molecule "1brv" (C:1,R:32,A:669,M:1)> to 
"1brv.cing/Data/Molecules/1brv.molecule"
==> Saving <DistanceRestraintList "distance_constraint_list" (keep,264)> to 
1brv.cing/Data/Restraints/distance_constraint_list.distances
==> Saving <DihedralRestraintList "dihedral_constraint_list" (keep,29)> to 
1brv.cing/Data/Restraints/dihedral_constraint_list.dihedrals
DEBUG: Parallel park the temporary directory for 
linkNmrStarDataProjectDirectory: 
/Users/jd/tmp/cingTmp/1brv_nmrStar_tmp
DEBUG: LinkNmrStarData.projectDirectory: /Users/jd/tmp/cingTmp/1brv_nmrStar_tmp
DEBUG: test A
Doing 1...
ERROR: Traceback (most recent call last):
  File "/Users/jd/workspace34/cing/python/cing/PluginCode/NmrStar.py", line 54, in 
toNmrStarFile
    linkNmrStarData = LinkNmrStarData(" %s -raise -force  -noGui" % self.project.name )
  File "/Users/jd/workspace34/ccpn/python/msd/adatah/Generic.py", line 87, in __init__
    self.catchError(raiseError,timeFlag)
  File "/Users/jd/workspace34/ccpn/python/msd/adatah/Generic.py", line 80, in __init__
    self.runSpecific()
  File "/Users/jd/workspace34/recoord/python/recoord2/msd/linkNmrStarData.py", line 202, in 
runSpecific
    self.writeSummaryFile()
  File "/Users/jd/workspace34/recoord/python/recoord2/msd/linkNmrStarData.py", line 314, in 
writeSummaryFile
    self.summaryFile = open(os.path.join(projectDirectory,self.idCode,"%s.summary" % 
self.baseName),'w')
IOError: [Errno 2] No such file or directory: 
'/Users/jd/ccpn_tmp/data/recoord/1/linkNmrStarData.summary'

ERROR: Failed to convert CCPN project to NMR-STAR using cing.Plugins.NmrStar 
which uses the 
FC CCPN api.
F
===========================================================
===========
FAIL: testNmrStar (__main__.AllChecks)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/jd/workspace34/cing/python/cing/PluginCode/test/test_NmrStar.py", line 56, in 
testNmrStar
    self.assertTrue( nmrStar.toNmrStarFile( fileName ))
AssertionError

----------------------------------------------------------------------
Ran 1 test in 4.243s

FAILED (failures=1)

Original issue reported on code.google.com by jurge...@gmail.com on 16 Apr 2009 at 2:14

GoogleCodeExporter commented 9 years ago
awaiting Wim's approval.

Original comment by jurge...@gmail.com on 17 Apr 2009 at 8:32

GoogleCodeExporter commented 9 years ago
This is now checked in. Sorry for the delay.

Original comment by wfvran...@gmail.com on 21 Apr 2009 at 3:26

GoogleCodeExporter commented 9 years ago
Thanks

Original comment by jurge...@gmail.com on 22 Apr 2009 at 8:20