
OK, I will get to it tomorrow. My concerns:
- I am working on the transition from optparse to argparse right now.
Should this change [in arguments of homogen.py] be incorporated in the same feature branch?
- The new arguments could be: -o basename -d output_dir
where basename will be a prefix for the names of all output files, e.g. $ ./homogen.py -o homog_ -d out homog_input.py $ ls out/ homog_coefs_le.h5 homog_coefs_le.txt homog_corrs_le.h5...
J.
On 1 Sep 2016 15:17, "Robert Cimrman" cimr...@ntc.zcu.cz wrote:
Hi Jan,
it seems so, yes. But instead of removing it, it might be worth changing/fixing it so that it is obeyed and sets the output directory for all the results files.
Also, currently the output location of output directory for the homogenization examples cannot be fully configured externally, so when run as tests, the examples store some of the results outside output-tests/. This would be a thing worth fixing as well.
What do you think - will you give it a shot? :)
r.
On 09/01/2016 02:50 PM, Jan Heczko wrote:
Hi,
it seems to me that the command-line parameter -o has no influence on the outcome of the script. E.g. $ ./homogen.py examples/homogenization/linear_homogenization.py $ ls output/ coefs_le.h5 coefs_le.txt corrs_le.h5 corrs_le.vtk linear_homogenization. py and calling the same with the -o option creates the same five files in the same location: $ ./homogen.py -o homog examples/homogenization/linear_homogenization.py $ ls output/ coefs_le.h5 coefs_le.txt corrs_le.h5 corrs_le.vtk linear_homogenization. py
The value of the parameter is passed to HomogenizationApp in the same way as e.g. in simple.py (in which case it works as expected), but seems to be ignored afterwards.
In my opinion, the option can be removed.
Jan
-- You received this message because you are subscribed to a topic in the Google Groups "sfepy-devel" group. To unsubscribe from this topic, visit https://groups.google.com/d/to pic/sfepy-devel/PtX0UZz9L6k/unsubscribe. To unsubscribe from this group and all its topics, send an email to sfepy-devel...@googlegroups.com. To post to this group, send email to sfepy...@googlegroups.com. Visit this group at https://groups.google.com/group/sfepy-devel.