Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ezCol.py crash while searching for un unknown ezConStudy./data/ directory #5

Open
StudioDanton opened this issue May 25, 2024 · 1 comment

Comments

@StudioDanton
Copy link

StudioDanton commented May 25, 2024

Hi Ted,

Had a strange error pop up trying to use for the first time ezCon.py to process a 2 hours acquisition test.
Had to create manualy a 'ezConStudydata' directory at the same level of my 'data' directory to overcome the error.
Seems to be a misunderstanding between my pathname and the way it is used by the script.

Setup

Processing :
OS: Windows 10 x64 22H2 Build 19045.4412
Python v3.8.10
using programRevision = ezCon240108a.py

Commands

Failed when using command:
python ../ezRA/ezCon.py ./data/ObsStJean240524_19.txt

Output on Failure

   openFileStudy ===============
   opening ezConStudy./data/ObsStJean240524_19.txt
Traceback (most recent call last):
  File "../ezRA/ezCon.py", line 10345, in <module>
    main()
  File "../ezRA/ezCon.py", line 9982, in main
    openFileStudy()         # In case it will eventually error.  Creates fileWriteNameStudy, fileWriteStudy
  File "../ezRA/ezCon.py", line 1857, in openFileStudy
    fileWriteStudy = open(fileWriteNameStudy, 'w')
FileNotFoundError: [Errno 2] No such file or directory: 'ezConStudy./data/ObsStJean240524_19.txt'
@StudioDanton StudioDanton changed the title ezCol.py crash while searching for un unknown ezConStudydata directory ezCol.py crash while searching for un unknown ezConStudy./data/ directory May 25, 2024
@StudioDanton
Copy link
Author

As a workaround, in subroutine openFileStudy(), I've modify ezConStudy from a prefix to a sufix :

    fileWriteNameStudy = 'ezConStudy' + fileNameLast.split(os.path.sep)[-1][:-4] + '.txt'

To :

    fileWriteNameStudy = fileNameLast.split(os.path.sep)[-1][:-4] + '_ezConStudy.txt'

StudioDanton added a commit to StudioDanton/ezRA that referenced this issue Jun 3, 2024
StudioDanton added a commit to StudioDanton/ezRA that referenced this issue Jun 15, 2024
StudioDanton added a commit to StudioDanton/ezRA that referenced this issue Jul 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant