It seems that one cannot explicitly create a new study if the study name is identical to the name of the current folder. Are there any plans for this to change, or is this behavior documented somewhere?
(Or could at least a warning be printed? -- it does not seem ideal from the user experience side if creating new studies magically works or does not work depending on the name given.)
Best,
Jeff
(Apologies if this is in the wrong section -- the two "Code_Saturne usage forum guidelines" links <viewtopic.php?f=2&t=7> are both broken...)
Creating new studies in a folder with the same name
Forum rules
Please read the forum usage recommendations before posting.
Please read the forum usage recommendations before posting.
-
- Posts: 4210
- Joined: Mon Feb 20, 2012 3:25 pm
Re: Creating new studies in a folder with the same name
Hello,
I was not aware of this behavior. That would seem to be a bug. I'll check.
Best regards,
Yvan
I was not aware of this behavior. That would seem to be a bug. I'll check.
Best regards,
Yvan
Re: Creating new studies in a folder with the same name
It appears to be defined in the first line of the create() function of class Study of bin/cs_create.py
I presume that it is to assume that the user just wants to create a new case in an existing study, but in my case, the assumption was wrong
I presume that it is to assume that the user just wants to create a new case in an existing study, but in my case, the assumption was wrong

-
- Posts: 4210
- Joined: Mon Feb 20, 2012 3:25 pm
Re: Creating new studies in a folder with the same name
Hello,
I fixed this today on the "master" branch. I'll wait to see we have no side-effects before merging to other branches.
Best regards,
Yvan
I fixed this today on the "master" branch. I'll wait to see we have no side-effects before merging to other branches.
Best regards,
Yvan