Skip to content

Commit

Permalink
Update hipster.py
Browse files Browse the repository at this point in the history
corrected the link to the tng-project API
  • Loading branch information
sebastian-tg authored Oct 19, 2023
1 parent 6ed53b5 commit 93b7af8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hipster.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ def generate_catalog(self, model, dataloader, catalog_file):
with open(os.path.join(self.output_folder,
self.title,
"catalog.csv"), 'w', encoding="utf-8") as output:
output.write("#preview,simulation,snapshot data,subhalo id,subhalo,RMSE,id,RA2000,DEC2000,rotation,x,y,z\n")
output.write("#preview,simulation,snapshot data,subhalo id,subhalo data,RMSE,id,RA2000,DEC2000,rotation,x,y,z\n")
for i in range(coordinates.shape[0]):
output.write("<a href='https://space.h-its.org/Illustris/jpg/")
output.write(str(dataloader.dataset[i]['metadata']['simulation'])+"/")
Expand All @@ -298,11 +298,11 @@ def generate_catalog(self, model, dataloader, catalog_file):
output.write(str(dataloader.dataset[i]['metadata']['snapshot'])+",")
output.write(str(dataloader.dataset[i]['metadata']['subhalo_id'])+",")
output.write("<a href='")
output.write("https://www.illustris-project.org/api/")
output.write("https://www.tng-project.org/api/")
output.write(str(dataloader.dataset[i]['metadata']['simulation'])+"-1/snapshots/")
output.write(str(dataloader.dataset[i]['metadata']['snapshot'])+"/subhalos/")
output.write(str(dataloader.dataset[i]['metadata']['subhalo_id'])+"/")
output.write("' target='_blank'>www.illustris-project.org</a>,")
output.write("' target='_blank'>www.tng-project.org</a>,")
output.write(str(losses[i])+",")
output.write(str(i)+","+str(angles[i,1])+"," +
str(90.0-angles[i,0])+"," +
Expand Down

0 comments on commit 93b7af8

Please sign in to comment.