Consider removing the commented out code block
70 # Transfer frequency
71 f_star = C_SI / (2 * np.pi * arms_length)
72
73 # Equation (13) 74 Sn = (
75 (10.0 / (3 * arms_length ** 2))
76 * (
Consider removing the commented out code block
630 # def a_lm(el, em):
631 # return np.sqrt((el - em) * (el + em + 1)) / (el * (el + 1))
632
633 # def b_lm(el, em): 634 # return 1 / (2 * el) * np.sqrt(((el - 2) * (el + 2) * (el + em) * (el + em - 1))/((2 * el - 1) * (2 * el + 1)))
635
636 def c_lm(el, em):
Consider removing the commented out code block
627
628 # Needed only for Px and Py
629
630 # def a_lm(el, em): 631 # return np.sqrt((el - em) * (el + em + 1)) / (el * (el + 1))
632
633 # def b_lm(el, em):
Consider removing the commented out code block
930 #
931 # Once that is done, implement the following features.
932
933 # def __iter__(self):934 # for horizon_number in self.available_horizons:
935 # yield self[horizon_number]
936
Consider removing the commented out code block
934 # for horizon_number in self.available_horizons:
935 # yield self[horizon_number]
936
937 # def __len__(self):938 # return len(self.available_horizons)
Consider removing the commented out code block
572 # [self.read_on_grid(i, grid).data for i in iterations]
573 # )
574
575 # new_x0 = [times[0]] + list(grid.x0) 576 # new_dx = [dt] + list(grid.dx)
577
578 # return grid_data.UniformGridData.from_grid_structure(
Consider removing the commented out code block
568 # if abs(np.diff(times).max() - dt).max() > dt * 1e-5:
569 # raise RuntimeError("Timestep not constant enough")
570
571 # data = np.asarray( 572 # [self.read_on_grid(i, grid).data for i in iterations]
573 # )
574
Consider removing the commented out code block
561 # ]
562 # times = [self.time_at_iteration(i) for i in iterations]
563
564 # dt = np.diff(times).min() 565 # if dt <= 0:
566 # raise RuntimeError("Non-positive timesteps detected.")
567 # #
Consider removing the commented out code block
556 # if read_every is None:
557 # read_every = np.diff(iterations).max()
558
559 # iterations = [ 560 # i for i in iterations if ((i - iterations[0]) % read_every == 0)
561 # ]
562 # times = [self.time_at_iteration(i) for i in iterations]
Consider removing the commented out code block
548 # """
549 # # TODO: IMPLEMENT THIS
550
551 # iterations = self.available_iterations 552 # if min_iteration is not None:
553 # iterations = iterations[iterations >= min_iteration]
554 # if max_iteration is not None:
Consider removing the commented out code block
533 grid, resample=resample
534 )
535
536 # def read_evolution_on_grid( 537 # self,
538 # grid,
539 # read_every=None,
Consider removing the commented out code block
144 selected_times = selected_times[:: args.time_every]
145 logger.debug(f"Selected times {selected_times}")
146
147 # X = X0 + R * cos(phi)148 # Y = Y0 + R * sin(phi)
149
150 # We prepare the polar grid that we want evaluate
Description
It is recommended to remove any commented code in your codebase.
Bad practice
for item in sequence:
# print(item)
do_something(item)
# def old_function():
# '''Older implementation that has been replaced'''
# data = get_data()
# api.post(data)
Recommended
for item in sequence:
do_something(item)