[yt-svn] commit/yt: krafczyk: Make rockstar respect the value of the 'outbase' argument
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Tue Jan 10 17:03:43 PST 2017
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/commits/eb89d13ffb42/
Changeset: eb89d13ffb42
Branch: yt
User: krafczyk
Date: 2017-01-10 19:51:43+00:00
Summary: Make rockstar respect the value of the 'outbase' argument
Affected #: 1 file
diff -r 98bb0abc0b1421cba1c16df4ecca2ebd861d36d6 -r eb89d13ffb42b93b146a2deff9e1ad24d90feb75 yt/analysis_modules/halo_analysis/halo_finding_methods.py
--- a/yt/analysis_modules/halo_analysis/halo_finding_methods.py
+++ b/yt/analysis_modules/halo_analysis/halo_finding_methods.py
@@ -75,8 +75,13 @@
rh = RockstarHaloFinder(ds, **finder_kwargs)
rh.run()
+
+ if 'outbase' in finder_kwargs:
+ outbase = finder_kwargs['outbase']
+ else:
+ outbase = "rockstar_halos"
- halos_ds = RockstarDataset("rockstar_halos/halos_0.0.bin")
+ halos_ds = RockstarDataset(outbase + "/halos_0.0.bin")
try:
halos_ds.create_field_info()
except ValueError:
Repository URL: https://bitbucket.org/yt_analysis/yt/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
More information about the yt-svn
mailing list