This pull request serves to provide a working clustered model in Julia v0.7 (hence pulling from my "Clustered_P_R_v0.7" branch). If you don't want this in your master branch, let me know which branch you want it in. I will also submit a pull request to your "v0.6" branch which includes my updates as suited for Julia v0.6 (pulling from my "Clustered_P_R" branch).
A brief summary of the changes:
Updated almost all of the files in 'examples/clusters/' to include my most recent updates:
Modularized the scripts for running an optimizer on the model ('optimize.jl', 'optimize_parallel.jl', etc., with the essential functions in 'optimization.jl')
Added function to separate planets by the photo-evaporation boundary in Carrera et al 2018 (in 'misc_functions.jl') and have separate summary statistics (in 'summary_stats.jl', 'planetary_catalog.jl')
'MRpredict.jl' for using Angie's non-parametric mass-radius relation (both directly calculating mass given radius, and predicting mass by interpolating on a pre-computed radius-quantile grid like 'MRpredict_table_weights3025_R1001_Q1001.txt')
Other minor stuff
Fixed most (but not all) of the deprecation warnings that I got from running 'examples/clusters/generate_systems.jl', 'examples/clusters/optimize.jl', and 'examples/clusters/optimize_parallel.jl'.
Added function to draw from truncated Poisson distributions in 'src/planetary_system.jl', as the old function I was using returns odd behavior due to bugs in the Distributions package.
Note: the new data file ('data/q1q17_dr25_gaia_fgk.csv') is the same one you generated and shared via PSU Box a while ago.
This pull request serves to provide a working clustered model in Julia v0.7 (hence pulling from my "Clustered_P_R_v0.7" branch). If you don't want this in your master branch, let me know which branch you want it in. I will also submit a pull request to your "v0.6" branch which includes my updates as suited for Julia v0.6 (pulling from my "Clustered_P_R" branch).
A brief summary of the changes:
Updated almost all of the files in 'examples/clusters/' to include my most recent updates:
Fixed most (but not all) of the deprecation warnings that I got from running 'examples/clusters/generate_systems.jl', 'examples/clusters/optimize.jl', and 'examples/clusters/optimize_parallel.jl'.
Added function to draw from truncated Poisson distributions in 'src/planetary_system.jl', as the old function I was using returns odd behavior due to bugs in the Distributions package.
Note: the new data file ('data/q1q17_dr25_gaia_fgk.csv') is the same one you generated and shared via PSU Box a while ago.