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

Duality of Variables Definition 2 #19

Open
Kawtherhamad opened this issue Nov 28, 2023 · 0 comments
Open

Duality of Variables Definition 2 #19

Kawtherhamad opened this issue Nov 28, 2023 · 0 comments

Comments

@Kawtherhamad
Copy link

I am referring to the issue (Variables being Defined Twice #18)

My question was

I found that some of the variables are being defined more that once, for example, Number of Simulations is being defined both in the Global Config File and the locations file, number of locations is the same.

Can you explain to me the reason for that?

The answer was:

The generate_locations.py is not part of the framework, but part of your own simulation. The user of the framework thus can choose what he/she will adopt from the GlobalConfig file. BUT, THE GENERATE_LOCATIONS.PY FILE STILL NEEDS TO BE RUN BEFORE RUNNING THE SIMULATION.PY FILE, THIS MEANS THAT THE VARIABLES IN THERE HAVE EFFECT, MOREOVER, THOSE VARIABLES ARE NOT CHANGED BASED ON THE AMENDMENT OF THE VARIABLES IN THE GLOBALCONFIG.PY FILE, WHICH MEANS THAT THERE WILL BE PROBLEM IN THE PARAMETRIC STUDIES.

In my example I only used the definition of the file path from the GlobalConfig from GlobalConfig import locations_file.

That the parameters/variables have the same number (GlobalConfig vs generate_locations.py) are coincidence. YOU DID NOT GET MY POINT, I WANTED TO SAY THAT SIMILAR TO THE DUALITY OF THE DEFINITION OF THE NUMBER OF SIMULATIONS VARIALBE, THE num_locations = 3
cell_size = 100
num_of_simulations = 1

ARE ALSO DOUBLE DEFINED IN BOTH OF THE GENERATE LOCATION FILE AS WELL AS THE GLOBAL CONFIG FILE.
WHAT IS THE RELATION BETWEEN BOTH OF THEM? MOREOVER, THE NUM_LOCATIONS VRIABLE DEFINED IN THE GENERATE_LOCATIONS.PY FILE REFERS TO WHAT?

Can you please find my COMMENT above and provide me with your precious response.

Best Regards,
Kawther

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