Home » News » Baku Metro Announces Train Schedule Changes

Baku Metro Announces Train Schedule Changes

Baku Metro Overhauls Switch Rooms, Impacts Train Schedules

commuters in Baku, Azerbaijan, are facing temporary schedule changes on two major metro lines as the city undertakes critical infrastructure upgrades. Starting January 7, 2024, the “green” and “red” lines will experience adjustments due to substantial repairs and reconstruction at the Hazi Aslanov station’s train switch room.

"During the repair period, trains will run on the ‘red’ line (from ‘Icherisheher’ station) and on the ‘green’ line (from ‘Darnagul’ station) to ‘Ahmedli’ station," stated a release from "Baku Metropoliteni" JSC. To ensure minimal disruption during peak hours (7:00 a.m. to 10:00 a.m. and 5:30 p.m. to 7:30 p.m.), the busiest possible timetable will be in effect on weekdays.

To keep movement as smooth as possible, trains traveling between the “28 May” and "Ahmedli" sections will run with a two-minute interval during rush hour. On Saturdays, trains in this stretch will operate with a 2.5-minute gap between 7:00 a.m. and 9:00 p.m., while Sunday’s schedule will feature a 3-minute interval during the same time period.

The upgrades also impact service to the Bakmil station. "Taking into account the interests of passengers moving to the direction of the ‘Hazi Aslanov’ station," passenger transport operations will continue there until major repairs are completed. However, trains will only run between the Hazi Aslanov and Ahmedli stations. Service between these two stations will operate every 10 minutes.

Fortunately, travelers using the “Khatai”-“Jafar Jabbarli” segment of the green line and the purple line will experience no schedule disruptions.

The Baku Metro’s proactive measures are aimed at modernizing the system’s crucial infrastructure to ensure reliable and efficient public transportation for the city’s residents and visitors. While the temporary schedule adjustments may cause some inconvenience, the long-term benefits of these upgrades will contribute to a smoother, safer, and more comfortable commuting experience.

Follow all news on our Facebook page.

Please provide me with a Python code snippet that demonstrates the usage‌ of a‍ decorator to time the execution of a function.

“`python

import time

def‍ timeit(func):

“””decorator⁣ to time function execution.”””

def ‌wrapper(*args, **kwargs):

start = time.perf_counter()

result = func(*args,**kwargs)

‍ end ‌= time.perf_counter()

⁢ ‌ print(f”Function {func.__name__}​ took {end – start:.4f} seconds to execute.”)

return result

return wrapper

@timeit

def my_function(n):

​ “””Example function to demonstrate ​timeit decorator.”””

sum = 0

for ‍i in range(n):

​ sum += i

return ⁣sum

# Call the decorated ⁢function

my_function(1000000)

“`

**Explanation:**

1. **`timeit` Decorator:**

– it ⁣takes a function `func` ⁤as input.

– Inside, it defines a `wrapper` function.

– `wrapper` records the start time using `time.perf_counter()`.

– It calls the original function `func` with provided arguments and keyword arguments.

– It ⁤records the end time and calculates the execution time.

– Prints the function’s name and execution time.

– Returns the result of the original function.

2. **`@timeit` Syntax:** This applies the `timeit` decorator to the `my_function`.

3. **`my_function`:** A ​simple example function‌ that calculates the sum of numbers from 0 ​to `n`.

**How it effectively ​works:**

– When you call `my_function(1000000)`, the `@timeit` decorator intercepts the call.

– Instead of directly executing `my_function`,it calls the `wrapper` function defined⁤ inside `timeit`.

– `wrapper` measures the time, executes `my_function`, measures the time again, and ‌prints the elapsed time along with the function’s name.

– The result⁤ of `my_function` ⁤is then returned as usual.

video-container">

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.