summaryrefslogtreecommitdiffstats
path: root/calc_mass_potential.py
diff options
context:
space:
mode:
Diffstat (limited to 'calc_mass_potential.py')
-rwxr-xr-xcalc_mass_potential.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/calc_mass_potential.py b/calc_mass_potential.py
index 8cfe24e..bb49501 100755
--- a/calc_mass_potential.py
+++ b/calc_mass_potential.py
@@ -608,8 +608,8 @@ def main():
args = parser.parse_args()
config = ConfigObj(config_default.splitlines())
- if args.config != "":
- config_user = ConfigObj(args.config)
+ if args.config is not None:
+ config_user = ConfigObj(open(args.config))
config.merge(config_user)
ne_profile = np.loadtxt(config["ne_profile"])