Some notes on remote debugging mac builds on Travisci. It's hard to tell when something hangs what the cause it. Trial and error via commits is tedious. And on Mac, sometimes it's the gui asking for input. So I worked my around to get the access I needed for faster debugging a build.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Version 10.2 rasters says Raster.path
is the "full path and filename".
It's just the path.
You need to do os.path.join(raster.path, raster.name)
to get actually get the full path.
[Version Pro and earlier toolboxes] (https://pro.arcgis.com/en/pro-app/arcpy/classes/parameter.htm) claimed that you set the parameter dependendencies with a list of integers.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
import subprocess | |
import glob | |
import os | |
class LaTeXDirectory(object): | |
""" Context manager to help compile latex docs from python. | |
Switches to the latex document's folder and remains there while | |
inside the manager. The present working directory is restored once | |
the context manager exits. |
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
Building pygridgen-0.1-nppy35_2 | |
Removing old build environment | |
Removing old work directory | |
BUILD START: pygridgen-0.1-nppy35_2 | |
Fetching package metadata: ........ | |
Solving package specifications: ............ | |
The following NEW packages will be INSTALLED: | |
numpy: 1.9.3-py35_0 defaults | |
openssl: 1.0.1k-1 defaults |
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
import math | |
def point_to_point(point1, point2): | |
""" Distance between two points | |
Parameters | |
---------- | |
point1, point2 : tuples (len = 2) of floats | |
Tuples of x/y pairs defining each point. | |