Skip to content

Commit

Permalink
Ver.0.81 Maroon-X file type added
Browse files Browse the repository at this point in the history
  • Loading branch information
Trifon Trifonov committed Jan 24, 2023
1 parent 797cc6b commit cea678a
Show file tree
Hide file tree
Showing 4 changed files with 147 additions and 144 deletions.
2 changes: 1 addition & 1 deletion exostriker/gui.py
Expand Up @@ -6407,7 +6407,7 @@ def showDialog_MAROONX_input_file(self):
fit.type_fit["Transit"] = False
self.check_type_fit()
self.mute_boxes()

self.update_bounds()
self.init_fit()
self.update_use_from_input_file()
self.update_use()
Expand Down
15 changes: 9 additions & 6 deletions exostriker/lib/RV_mod/__init__.py
Expand Up @@ -4026,10 +4026,6 @@ def add_MAROONX_dataset(self, name, path, offset=0, jitter= 0, split = False):
lines = fo.readlines()
fo.close()

#2459437.5 - 2459450.5
#2459514.5 - 2459541.5
#2459358.5 - 2459368.5
#2459402.5 - 2459442.5

seasons = [[2459358.5,2459368.5],[2459402.5,2459450.5],[2459514.5,2459541.5],[2459541.5001,2460442.5]]

Expand All @@ -4041,6 +4037,7 @@ def add_MAROONX_dataset(self, name, path, offset=0, jitter= 0, split = False):
name_file.append('%s_S_%s.dat'%(basename[:-5],z+1))
path_file.append('datafiles/%s'%name_file[z])


out1 = open('%s'%path_file[z], 'w')

for i in range(len(lines)):
Expand All @@ -4057,10 +4054,16 @@ def add_MAROONX_dataset(self, name, path, offset=0, jitter= 0, split = False):

if split == True and os.stat(path_file[z]).st_size != 0:
self.add_dataset(name_file[z],path_file[z],offset,jitter,useoffset=True,usejitter=True)
self.rvoff_bounds[len(self.filelist.files)-1] = [-100.0,100.0]
self.rvoff_norm_pr[len(self.filelist.files)-1] = [0.0,10.0,True]
self.jitt_bounds[len(self.filelist.files)-1] = [0.0,10.0]
#self.jitt_norm_pr[len(self.filelist.files)-1] = [0.0,10.0,True]

elif split == False and z == 0:
self.add_dataset(name,path,offset,jitter,useoffset=True,usejitter=True)


self.rvoff_bounds[len(self.filelist.files)-1] = [-100.0,100.0]
self.rvoff_norm_pr[len(self.filelist.files)-1] = [0.0,10.0,True]
self.jitt_bounds[len(self.filelist.files)-1] = [0.0,10.0]

def add_RVbank_dataset(self, name, path, offset=0, jitter= 0, split = False):

Expand Down

0 comments on commit cea678a

Please sign in to comment.