You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First off, thank you for making this code public! I have a question about the goal of this code though.
Is there a reason that this code has been written in such a way that modularizing and using functions as a library was not done? For example, in run_fp.py there is the line
# Fingerprinting
chdir('fingerprint')
for param in fp_params:
print("Fingerprinting %s" % param)
process = subprocess.Popen((fpCommand % param),
stdout=subprocess.PIPE, shell=True)
output, error = process.communicate()
print(output.decode('UTF-8'))
there are numerous calls using subprocess throughout this code. If things were written modularly the above code could be replaced by
from fingerprint import gen_fp
...
# Fingerprinting
for param in fp_params:
print("Fingerprinting %s" % param)
gen_fp.call_mad(param)
gen_fp.run_fingerprint(param)
where these are two functions within gen_fp.py that can do what the command line call to gen_fp.py does without using the subprocess library to run things from the command line.
Using things like chdir() make this code practically impossible to use outside of the very prescribe directory structure within the FAST directory. Is there any discussion of making things more modular? I can help with this, but I might have some questions as I go and it will be over the winter break in a couple of weeks. I have a student trying to use this FAST code right now, and it is not easy to get our data going.
The text was updated successfully, but these errors were encountered:
Thanks for your interest! Please beware that this is research code put together by a group of people overtime. The way the code is structured right now is pretty much a result of the development process. You are welcomed to ask questions and submit pull requests over the winter break if you are interested in helping with the restructuring.
For using the code, I do recommend starting with the setup in the Hector Mine example.
First off, thank you for making this code public! I have a question about the goal of this code though.
Is there a reason that this code has been written in such a way that modularizing and using functions as a library was not done? For example, in run_fp.py there is the line
there are numerous calls using subprocess throughout this code. If things were written modularly the above code could be replaced by
where these are two functions within gen_fp.py that can do what the command line call to gen_fp.py does without using the subprocess library to run things from the command line.
Using things like chdir() make this code practically impossible to use outside of the very prescribe directory structure within the FAST directory. Is there any discussion of making things more modular? I can help with this, but I might have some questions as I go and it will be over the winter break in a couple of weeks. I have a student trying to use this FAST code right now, and it is not easy to get our data going.
The text was updated successfully, but these errors were encountered: