Skip to content

Instantly share code, notes, and snippets.

View jmarrec's full-sized avatar

Julien Marrec jmarrec

View GitHub Profile
@jmarrec
jmarrec / try_gridspec.py
Created December 8, 2016 15:26
Plot pandas df onto gridpsec
import pandas as pd
import numpy as np
import matplotlib as mpl
import matplotlib.pyplot as plt
df = pd.DataFrame(np.random.rand(100,2), columns=['A','B'])
gs = mpl.gridspec.GridSpec(nrows=2, ncols=1)
for i, col in enumerate(df):
ax = plt.subplot(gs[i])
df[col].plot(ax=ax)
@jmarrec
jmarrec / MinimalShadingControlOpenStudio.rb
Created January 9, 2017 09:38
Minimal ruby example for ShadingControl
model = OpenStudio::Model::Model.new
construction = OpenStudio::Model::Construction.new(model)
sc = OpenStudio::Model::ShadingControl.new(construction)
sc.setShadingControlType("OnIfHighSolarOnWindow")
sc.setSetpoint(200)
@jmarrec
jmarrec / # python3 - 2017-09-02_13-03-43.txt
Created September 6, 2017 12:13
python3 on macOS 10.12.6 - Homebrew build logs
Homebrew build logs for python3 on macOS 10.12.6
Build date: 2017-09-02 13:03:43
A4501,A4502,A4503,A4504,A4505,A4506,A4507,A4508,A4509,A4510,A4511,A4512,A4513,A4514,A4515,A4516,A4517,A4518,A4519,A4520,A4521,A4522,A4523,A4524,A4525,A4526,A4527,A4528,A4529,A4530,A4531,A4532,A4533,A4534,A4535,A4536,A4537,A4538,A4539,A4540,A4541,A4542,A4543,A4544,A4545,A4546,A4547,A4548,A4549,A4550,A4551,A4552,A4553,A4554,A4555,A4556,A4557,A4558,A4559,A4560,A4561,A4562,A4563,A4564,A4565,A4566,A4567,A4568,A4569,A4570,A4571,A4572,A4573,A4574,A4575,A4576,A4577,A4578,A4579,A4580,A4581,A4582,A4583,A4584,A4585,A4586,A4587,A4588,A4589,A4590,A4591,A4592,A4593,A4594,A4595,A4596,A4597,A4598,A4599,A4600,A4601,A4602,A4603,A4604,A4605,A4606,A4607,A4608,A4609,A4610,A4611,A4612,A4613,A4614,A4615,A4616,A4617,A4618,A4619,A4620,A4621,A4622,A4623,A4624,A4625,A4626,A4627,A4628,A4629,A4630,A4631,A4632,A4633,A4634,A4635,A4636,A4637,A4638,A4639,A4640,A4641,A4642,A4643,A4644,A4645,A4646,A4647,A4648,A4649,A4650,A4651,A4652,A4653,A4654,A4655,A4656,A4657,A4658,A4659,A4660,A4661,A4662,A4663,A4664,A4665,A4666,A4667,A4668,A4669,A4670,A467
@jmarrec
jmarrec / Find_Missing_OpenStudio_RTs.ipynb
Last active June 6, 2018 21:43
Get Missing OpenStudio Reverse Translator (naive)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
\documentclass[12pt,twoside,letterpaper,titlepage]{report}
\usepackage{amssymb,amsmath}
\usepackage{mathspec}
\defaultfontfeatures{Ligatures=TeX,Scale=MatchLowercase}
\usepackage[margin=0.75in, top=1in]{geometry}
% fixltx2e has been merged into LaTeX2e proper
% see: https://latex-project.org/ltnews/ltnews22.pdf
% \usepackage{fixltx2e}
\usepackage{graphicx,grffile}
Program Version,EnergyPlus, Version 9.2.0-8ec2c2deb6, YMD=2019.08.28 09:20,
** Warning ** Timestep: Requested number (1) is less than the suggested minimum of 4.
** ~~~ ** Please see entry for Timestep in Input/Output Reference for discussion of considerations.
** Warning ** GetHTSurfaceData: Surfaces with interface to Ground found but no "Ground Temperatures" were input.
** ~~~ ** Found first in surface=FOUNDATIONWALL
** ~~~ ** Defaults, constant throughout the year of (18.0) will be used.
** Warning ** SurfaceProperty:ExposedFoundationPerimeter: SLAB, TOTALEXPOSEDPERIMETER set as calculation method, but a value has been set for Exposed Perimeter Fraction. This value will be ignored.
************* Note that the following warning(s) may/will occur if you have not enclosed your zone completely.
** Warning ** Entered Zone Volumes differ from calculated zone volume(s).
** ~~~ ** ...use Output:Diagnostics,DisplayExtraWarnings; to show more details on individual zones.
@jmarrec
jmarrec / cpack.log
Created September 23, 2019 10:27
cpack.log
CPack: Enable Verbose
CPack: C:\msys64\home\dashboard\CMakeReleaseDirectory64\f43a7d76c7\Source\CPack\cpack.cxx:203 Enable Debug
CPack Verbose: C:\msys64\home\dashboard\CMakeReleaseDirectory64\f43a7d76c7\Source\CPack\cpack.cxx:207 Read CPack config file: ./CPackConfig.cmake
CPack Verbose: C:\msys64\home\dashboard\CMakeReleaseDirectory64\f43a7d76c7\Source\CPack\cpack.cxx:279 Read CPack configuration file: C:/Users/julien/Software/Others/EnergyPlus/build/CPackConfig.cmake
CPack Verbose: C:\msys64\home\dashboard\CMakeReleaseDirectory64\f43a7d76c7\Source\CPack\cpack.cxx:342 Specified generator: IFW
C:\msys64\home\dashboard\CMakeReleaseDirectory64\f43a7d76c7\Source\CPack\cmCPackGenerator.cxx:950 cmCPackIFWGenerator::SetOption(CPACK_GENERATOR, IFW)
-- Found QtIFW 3.1.0 version
C:\msys64\home\dashboard\CMakeReleaseDirectory64\f43a7d76c7\Source\CPack\cmCPackGenerator.cxx:1172 Warning, GetOption return NULL for: CPACK_IFW_RESOLVE_DUPLICATE_NAMES
C:\msys64\home\dashboard\CMakeReleaseDirectory64\f43a7d76c7\Source\CPack\
@jmarrec
jmarrec / model.osm
Created October 4, 2019 07:46
A dummy test case with a a chiller served by a chiller.
OS:Version,
{faf72133-fd24-4783-86b2-5ac3cbbf2ad3}, !- Handle
2.7.1; !- Version Identifier
OS:SimulationControl,
{24674fcb-3359-4dcb-b27c-693710728c7a}, !- Handle
Yes, !- Do Zone Sizing Calculation
Yes, !- Do System Sizing Calculation
Yes, !- Do Plant Sizing Calculation
@jmarrec
jmarrec / Create_UniqueModelObject_Clone_tests.ipynb
Created February 27, 2020 10:12
Create_UniqueModelObject_Clone_tests.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.