Skip to content

Commit

Permalink
Fixed some bugs in the newest main contribution
Browse files Browse the repository at this point in the history
  • Loading branch information
kdreher committed Sep 18, 2023
1 parent c8d7f62 commit a107404
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion simpa/utils/libraries/structure_library/VesselStructure.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def calculate_vessel_samples(self, position, direction, bifurcation_length, radi
if samples >= bifurcation_length:
vessel_branch_positions1 = position
vessel_branch_positions2 = position
angles = np.random.normal(torch.pi / 16, torch.pi / 8, 3)
angles = np.random.normal(np.pi / 16, np.pi / 8, 3)
vessel_branch_directions1 = torch.tensor(np.matmul(rotation(angles), direction)).to(self.torch_device)
vessel_branch_directions2 = torch.tensor(np.matmul(rotation(-angles), direction)).to(self.torch_device)
vessel_branch_radius1 = 1 / math.sqrt(2) * radius
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def read_rxt_file(file_path: str) -> (np.ndarray, np.ndarray, np.ndarray, float)
if not os.path.isfile(file_path):
raise FileNotFoundError(f"You need to supply the path to a file, not {file_path}")

dataframe = pd.read_csv(file_path, " ", skiprows=1, header=None)
dataframe = pd.read_csv(file_path, sep=" ", skiprows=1, header=None)

with open(file_path, "r") as metadata_path:
metadata = metadata_path.readline().split("\t")
Expand Down

0 comments on commit a107404

Please sign in to comment.