-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #74 from e-koch/master
Updates to some examples scripts; Change numpy version for Travis
- Loading branch information
Showing
8 changed files
with
85 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
|
||
# Create data tables of the observational results | ||
# Run from Dropbox/AstroStatistics/Full Factorial/Observational Results/ | ||
|
||
import os | ||
import shutil | ||
|
||
from turbustat.analysis.convert_results import concat_convert_HDF5 | ||
from turbustat.analysis import convert_format | ||
|
||
|
||
# Obs to Fids | ||
|
||
path = "Obs_to_Fid/" | ||
hdf5_path = "Obs_to_Fid/HDF5/" | ||
|
||
convert_format(hdf5_path, 0) | ||
shutil.move(hdf5_path+"complete_distances_face_0.csv", path) | ||
|
||
convert_format(hdf5_path, 1) | ||
shutil.move(hdf5_path+"complete_distances_face_1.csv", path) | ||
|
||
convert_format(hdf5_path, 2) | ||
shutil.move(hdf5_path+"complete_distances_face_2.csv", path) | ||
|
||
# Des to Obs | ||
|
||
hdf5_path = "Des_to_Obs/HDF5/" | ||
|
||
concat_convert_HDF5(hdf5_path, face=0, interweave=True, average_axis=0) | ||
shutil.move(os.path.join(hdf5_path, "des_0.csv"), "Des_to_Obs") | ||
shutil.move("Des_to_Obs/des_0.csv", "Des_to_Obs/des_0_obs.csv") | ||
|
||
concat_convert_HDF5(hdf5_path, face=2, interweave=True, average_axis=0) | ||
shutil.move(os.path.join(hdf5_path, "des_2.csv"), "Des_to_Obs") | ||
shutil.move("Des_to_Obs/des_2.csv", "Des_to_Obs/des_2_obs.csv") | ||
|
||
# Make plots using make_distance_plots.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters