This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- coding: utf-8 -*- | |
| import multiprocessing as mp | |
| import matlab.engine as me | |
| def start_matlab(ready_event, close_event): | |
| print('Starting matlab...') | |
| eng = me.start_matlab(option='-nodesktop') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from typing import Union | |
| import pandas as pd | |
| from trading_calendars import TradingCalendar, get_calendar | |
| class TradingDay: | |
| """Offset for trading days | |
| The class is useful to find previous and next trading days from given date. |
OlderNewer