r"""Get the frame name for the given name and space. Parameters ---------- name : str Group name. space : alphapy.Space Context or namespace for the given group name. Returns ------- fname : str Frame name. Examples -------- >>> fna
(name, space)
| 45 | # |
| 46 | |
| 47 | def frame_name(name, space): |
| 48 | r"""Get the frame name for the given name and space. |
| 49 | |
| 50 | Parameters |
| 51 | ---------- |
| 52 | name : str |
| 53 | Group name. |
| 54 | space : alphapy.Space |
| 55 | Context or namespace for the given group name. |
| 56 | |
| 57 | Returns |
| 58 | ------- |
| 59 | fname : str |
| 60 | Frame name. |
| 61 | |
| 62 | Examples |
| 63 | -------- |
| 64 | |
| 65 | >>> fname = frame_name('tech', Space('stock', 'prices', '1d')) |
| 66 | # 'tech_stock_prices_1d' |
| 67 | |
| 68 | """ |
| 69 | return USEP.join([name, space.subject, space.schema, space.fractal]) |
| 70 | |
| 71 | |
| 72 | # |
no outgoing calls
no test coverage detected