Skip to content
Snippets Groups Projects
Commit e7b24475 authored by David Hendriks's avatar David Hendriks
Browse files

working towards putting all the montecarlo things

parent f67a28b2
No related branches found
No related tags found
No related merge requests found
...@@ -410,7 +410,7 @@ class dataIO: ...@@ -410,7 +410,7 @@ class dataIO:
Also, make sure that in this export there are the basic parameters Also, make sure that in this export there are the basic parameters
like m1,m2,sep, orb-per, ecc, probability etc. like m1,m2,sep, orb-per, ecc, probability etc.
TODO: this function can probably be cleaned a bit and can rely on the other startup and clean up functions (see population_class)
On default this will write to the datadir, if it exists On default this will write to the datadir, if it exists
Args: Args:
......
...@@ -147,6 +147,7 @@ class sampling_variables: ...@@ -147,6 +147,7 @@ class sampling_variables:
bottomcode: Union[str, None] = None, bottomcode: Union[str, None] = None,
condition: Union[str, None] = None, condition: Union[str, None] = None,
dry_parallel: Union[bool, None] = False, dry_parallel: Union[bool, None] = False,
dependency_variables: Union[list, None] = None,
) -> None: ) -> None:
""" """
Function to add sampling variables to the grid_options. Function to add sampling variables to the grid_options.
...@@ -248,6 +249,9 @@ class sampling_variables: ...@@ -248,6 +249,9 @@ class sampling_variables:
bottomcode: bottomcode:
Code added at the very bottom of the block. Code added at the very bottom of the block.
dependency_variables:
TODO: describe
""" """
# check parameters # check parameters
...@@ -278,6 +282,7 @@ class sampling_variables: ...@@ -278,6 +282,7 @@ class sampling_variables:
"bottomcode": bottomcode, "bottomcode": bottomcode,
"sampling_variable_number": len(self.grid_options["_sampling_variables"]), "sampling_variable_number": len(self.grid_options["_sampling_variables"]),
"dry_parallel": dry_parallel, "dry_parallel": dry_parallel,
"dependency_variables": dependency_variables,
} }
# Check for gridtype input # Check for gridtype input
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment